ABSTRACT

For many programmers, testing and debugging can take just as much time as writing code. Testing and debugging are normal parts of the process. This chapter starts by exploring testing techniques and discusses the debugging features built into Unity and Visual Studio. Testing is the single most important development technique for achieving reliability. Visual Studio has a built-in debugger that will allow us to step through our code, examine memory, and gain a better understanding of what’s happening. This can be much easier and faster for the developer when compared to putting in Debug statements. The Unity environment makes it easy to do something quite similar by pausing play and examining the Hierarchy and the Scene View.