I know JavaScript, but haven’t begun using Unity yet, and I mean no offense. It looks to have wonderful 3D object manipulation and particle animation features, but how do you folks make professional, full-featured games without a debugger? Using print() to track down anything complicated is excruciating. Did I miss something in the docs?
Although obviously debugger would be great, I’ve found (in unity and in other development projects) that a strong test driven approach can negate much of the need for a debugger. At the unit level you can generally solve problems by writing to console (almost) as easily as through a debugger, as the problems are typically both small and simple.
Define what an object does, make sure it does it, and don’t “release” an object into the game world until you do.
There are alternatives.For example building systems that produce the desired behavior without specifically defining the individual behavior of the components. Evaluate and keep what works, throw away what doesn’t. Repeat.
Excruciatingly. The lack of a debugger is the single biggest problem with developing Unity projects IMO. But the good news is that there will be debugging with breakpoints (and I hope watches and expressions) in Unity 3.
No, you didn’t. There is no full blown debugger with stepping and variable inspection as one would have in Visual C++, for instance.
However, there are a few more tools besides Debug.Log. Debug.Break can be used to pause the application in a certain frame (not an individual line, sadly) and you can run the inspector in Debug mode to inspect private variables. For debugging your vector math, you can use Debug.DrawLine, which is something I highly recommend.
It’s not easy, but it’s possible. One of my professors taught us how to go through the code ourselves and run through it like we were the machines. It’s monotonous and time-consuming, but it’s possible and it’s something that my professors seem to be good at, I guess, because they didn’t have debuggers or anything like that when they were our ages.
It’s kind of funny, in one of my computer science courses, we were actually learning how to use Unity. My professor was kind of struggling on learning how to use the Unity editor and some of the modeling software, probably due to his age, it gets harder for old people to learn new things. But, when I was struggling with one of the scripts, having no flipping clue it wasn’t working because Unity didn’t catch it for me, my professor happened to glance at it and immediate found the problem. Like some bright flashing light on my computer screen, he could identify the problem right away.
So, for younger people it might seem impossible to do some of this yourself, but before they had all this wonderful technology to help us code, programmers had to go through their code themselves and identify their bugs themselves. This is probably something you get good at with practice.