Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

附加调试Unity闪退 #188

Open
osience opened this issue Jan 2, 2025 · 13 comments
Open

附加调试Unity闪退 #188

osience opened this issue Jan 2, 2025 · 13 comments

Comments

@osience
Copy link

osience commented Jan 2, 2025

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

@Issues-translate-bot
Copy link

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


Title: Additional debugging Unity crashes

@CppCXY
Copy link
Member

CppCXY commented Jan 2, 2025

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

@Issues-translate-bot
Copy link

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.

@osience
Copy link
Author

osience commented Jan 2, 2025

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

@Issues-translate-bot
Copy link

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

@osience
Copy link
Author

osience commented Jan 2, 2025

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

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

@Issues-translate-bot
Copy link

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.

@CppCXY
Copy link
Member

CppCXY commented Jan 2, 2025

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

@Issues-translate-bot
Copy link

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


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

@osience
Copy link
Author

osience commented Jan 2, 2025

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

@Issues-translate-bot
Copy link

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.

@binjrz
Copy link

binjrz commented Jan 13, 2025

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

@osience
Copy link
Author

osience commented Jan 17, 2025

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

还没有 现在还是坏的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants