About Debugging with Xcode

Finding and eliminating problems in your code is a critical part of the development process. The Xcode debugger is preset with useful features for general purpose debugging and runs automatically when your app is launched. The debugger helps you:

Prerequisites

You should be familiar with app design and programming concepts. Some familiarity with Xcode is also recommended; see Xcode Overview.

See Also

Every year, several sessions at the Apple Worldwide Developer Conference are devoted to debugging that expand upon the material in this guide and add to it with useful techniques. These sessions are available for you in the Apple developer libraries at the Apple Developer website and are easy to find by filtering on “debug.”

The following recent WWDC presentations focus on using the Xcode debugger and related tools:

A good primer on debugging in general is The 9 Indispensable Rules for Finding Even the Most Elusive Software and Hardware Problems by David J. Agans.