|
so as an attempt to debug my program, i put Debug.Log() inside Update cycle and Unity always crashes and when i remove Debug.Log() it does fine It's really a shame debugging in Unity is really pain and the only good is breakpoint in MonoDevelop :( sorry it's being rude, are there any tips of unity debugging best practice? specifically C# scripting
(comments are locked)
|
|
Debug.Log is expensive, it dumps the stack each time. There are alternates. You might be able to make a GUIText or other type of text object and dump text to that. I'm pretty sure there are some alternate debugging consoles on the script wiki page, and probably in the Asset Store too.
(comments are locked)
|
|
by coincidence i found this:
(comments are locked)
|
