Chapter 15: Getting Started with Code Analysis and Debugging
In This Chapter
Using the console Working with breakpoints Using the Variables View Using breakpoint actionsWorking with command-line debugging
The Xcode toolchain includes a powerful suite of code analysis, code correction, and debugging tools. Some run outside the main Xcode editor and are introduced in the following chapters. This chapter discusses features that are built into Xcode itself: the code analyzer, tips and issues, the debugging area, and a selection of other options in the Project Navigator that are dedicated to debugging.
With these features, you can perform the following tasks:
Check your code for issues as you type
View tips that can help you correct issues
Analyze code to reveal more complex issues
Log messages to a window called the console while your application is running—typically to provide live diagnostic information
View the console output from previous runs
Pause execution at any point in the ...