Chapter 12. Debugging Programs with Xcode

Xcode is fantastic! Not only is this tool provided free of charge from Apple's developer site but it is actually really, really good! Aside from being able to create the next great Mac OS X, iPhone, or iPad app, Xcode has a fantastic debugger built right into the tool.

So, what exactly is a debugger? First of all, let's get something straight – programs do exactly what they are written to do. Sometimes, what is written isn't exactly what the program is really meant to do. Sometimes, this means that the program crashes or just doesn't do something that is expected. Whatever the case, when a program doesn't work as planned the program is said to have bugs. The process of going through the code and fixing ...

Get Objective-C for Absolute Beginners: iPhone, iPad, and Mac Programming Made Easy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.