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 Debugger window, or the GDB debugger console.
This document describes the Xcode debugging environments. You’ll learn how to take advantage of the capabilities each environment provides.
This document contains the following chapters:
“Debugging Essentials” provides a high-level summary of the Xcode debugging environments.
“Debugging in the Text Editor” describes the debugging environment Xcode provides in the text editor.
“Debugging in the Mini Debugger” explains how to use the mini debugger to debug programs unobtrusively.
“Debugging in the Debugger Window” describes the Debugger window.
“Debugging in the Console” discusses GDB Console window.
“Managing Program Execution” describes the mechanisms used to control and monitor the execution of programs.
“Viewing Variables and Memory” talks about the various ways in which you can view the values of variables as you debug your programs.
“Modifying Running Code” shows how you can modify your executable while it is running.
“Debugging Programs Remotely” describes how to debug a program running on another computer.
“Low-Level Debugging Support” talks about the Mac OS X debugging facilities that can help you in your debugging tasks.
“Debugging Preferences” describes the Debugging preferences pane.
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-01-06)