Done with Debugging
Using the GDB debugger in Xcode to hunt down your bugs will take a while to get used to if you haven’t used it before. After you get comfortable with it, though, your productivity will skyrocket because you won’t be adding and removing NSLog statements all over the place. That being said, you will find that sometimes using NSLog to debug is the most efficient option. When you do use it, remember the formatting tips and tricks you learned in this chapter to output any value in your application.
Next chapter, you will finally learn how to run Xcode apps on an iPhone or iPad.
The Least You Need to Know
• Debugging using GDB consists of setting breakpoints and stepping through code line by line.
• Get comfortable using GDB ...