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

Debug.Log的行数错误 #9

Closed
Ollydbg opened this issue Jan 3, 2017 · 2 comments
Closed

Debug.Log的行数错误 #9

Ollydbg opened this issue Jan 3, 2017 · 2 comments

Comments

@Ollydbg
Copy link

Ollydbg commented Jan 3, 2017

非常棒的想法!
我在测试过程中发现了一个问题,一旦开启了HOTFIX_ENABLE宏编译之后,Demo中的HotfixTest里面打印的LOG的函数会定位到HotfixTest2的102行,关闭这个宏之后重新编译就好了。

^>>>>>>>>Update in C#, tick = 50
UnityEngine.Debug:Log(Object)
HotfixTest:Update() (at Assets/XLua/Examples/08_Hotfix/HotfixTest2.cs:102)

Unity版本5.3.5f1

@chexiongsheng
Copy link
Collaborator

文档已经有说明了,打开HOTFIX_DEBUG_SYMBOLS就可以解决这问题,但带来的新问题是只能运行一次,Unity运行过一次后会持有Assembly-CSharp.dll.mdb文件的句柄,这时改代码后会导致重新编译,xLua要写Assembly-CSharp.dll.mdb的时候会报写冲突。详细情况及使用建议看Assets/XLua/Doc/hotfix.md

@Ollydbg
Copy link
Author

Ollydbg commented Jan 3, 2017

谢谢 @chexiongsheng 我没注意到...

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

2 participants