If you have programmed in C or C++, you likely already know GDB, one of the most widely used debuggers. You may also know how to use the GDB command-line interface inside and out, in which case this part of the chapter will be very familiar to you. However, it will be assumed you have never heard of GDB and may not know how to use a debugger. Even if you know GDB, it’s worth paying attention here to see how to use the GDB interface in Xcode.
A debugger is a tool used to step through your code line by line and inspect values in your application at runtime. You set breakpoints in your source code, and when you run it in the debugger, your application stops at these points. When your app is stopped at a breakpoint, you can step over a line ...

Get The Complete Idiot's Guide® To iPad and iPhone App Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.