Finding and eliminating bugs in your code is a critical phase of the development process. Xcode provides advanced debugging facilities, which include debugging from the text editor so that you don’t stray far from your code, and using the mini debugger, which provides a graphical debugging experience that is less intrusive on the running application than other methods. You can also use a more traditional, specialized graphical debugger, or the debugger console.

This document describes the Xcode debugging environments and explains how to trace your program’s execution and view its data. It is intended for developers and system administrators who want to use Xcode to debug programs and analyze their behavior and performance.

Organization of This Document

The first chapter, “Debugging Essentials,” provides a high-level summary of the Xcode debugging environments.

The next five chapters describe the debugging environments and show how to customize your debugging experience:

The remaining chapters describe general debugging features and capabilities: