Debugging & Best Practices
Debugging is the art of understanding the root causes of a programming or specification issue so that you can either fix the issue, work around it, or alter your program specifications and requirements.
Why mention this at all in a book about SpriteBuilder?
Because you’ll inevitably run into problems that you can easily solve on your own with just basic knowledge of debugging tools and techniques. These problems are logging, asserting, adding breakpoints, stepping through code, and inspecting variable values. The latter two are performed while your app is running, which allows you to see exactly which paths your code is taking.
In this chapter, I give many code examples you don’t need to add to your Xcode ...