VSCode-EmmyLua icon indicating copy to clipboard operation
VSCode-EmmyLua copied to clipboard

附加调试Unity闪退

Open osience opened this issue 11 months ago • 13 comments

vscode版本:1.96.2 emmyLua版本:0.8.20 unity版本:2021.3.19f1 选则Attach to process id,选择Unity进程,Vscode的Debug Console输出了Connect, 紧接着Unity就会闪退

osience avatar Jan 02 '25 03:01 osience

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Additional debugging Unity crashes

Issues-translate-bot avatar Jan 02 '25 03:01 Issues-translate-bot

闪退就用emmy new debug, 如果还是闪退, 建议编译个debug版本的调试器用VS调试一下, 这种闪退通常和unity版本无关, 应该是某些计算导致了lua的崩溃

CppCXY avatar Jan 02 '25 05:01 CppCXY

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If it crashes, use emmy new debug. If it still crashes, it is recommended to compile a debug version of the debugger and use VS to debug it. This kind of crash usually has nothing to do with the unity version. It should be that some calculations caused Lua to crash.

Issues-translate-bot avatar Jan 02 '25 05:01 Issues-translate-bot

emmy new debug可以用,那我编一个debug版本的试一下

osience avatar Jan 02 '25 05:01 osience

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


emmy new debug can be used, then I will make a debug version and try it out

Issues-translate-bot avatar Jan 02 '25 05:01 Issues-translate-bot

闪退就用emmy new debug, 如果还是闪退, 建议编译个debug版本的调试器用VS调试一下, 这种闪退通常和unity版本无关, 应该是某些计算导致了lua的崩溃

请教下,自己编译debug版本是用什么编译呢,源码仓库里没有make文件或者sln文件

osience avatar Jan 02 '25 06:01 osience

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If it crashes, use emmy new debug. If it still crashes, it is recommended to compile a debug version of the debugger and use VS to debug it. This kind of crash usually has nothing to do with the unity version. It should be some calculation that caused Lua to crash.

Please tell me, what should I use to compile the debug version myself? There is no make file or sln file in the source code warehouse.

Issues-translate-bot avatar Jan 02 '25 06:01 Issues-translate-bot

这个项目 https://github.com/EmmyLua/EmmyLuaDebugger

CppCXY avatar Jan 02 '25 06:01 CppCXY

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This project https://github.com/EmmyLua/EmmyLuaDebugger

Issues-translate-bot avatar Jan 02 '25 06:01 Issues-translate-bot

编译debug版本后,unity不闪退了,但是会卡住操作不了,我还是先用emmy new debug吧

osience avatar Jan 02 '25 06:01 osience

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


After compiling the debug version, Unity no longer crashes, but it gets stuck and cannot be operated. I'd better use emmy new debug first.

Issues-translate-bot avatar Jan 02 '25 06:01 Issues-translate-bot

@osience 找到原因了吗?我也闪退,同个工程以前都正常使用

binjrz avatar Jan 13 '25 12:01 binjrz

@osience 找到原因了吗?我也闪退,同个工程以前都正常使用

还没有 现在还是坏的

osience avatar Jan 17 '25 07:01 osience