Chapter    13

Introducing the Xcode Debugger

Not only is Xcode provided free of charge on Apple’s developer site and the Mac App Store, but it is a great tool. Aside from being able to use it to create the next great Mac, iPhone, iPad, and Apple Watch apps, Xcode has a debugger built right into the tool.

What exactly is a debugger? Well, let’s get something straight—programs do exactly what they are written to do, but sometimes what is written isn’t exactly what the program is really meant to do. This can mean 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 these problems is called

Get Swift 2 for Absolute Beginners 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.