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:

bl.eps Check your code for issues as you type

bl.eps View tips that can help you correct issues

bl.eps Analyze code to reveal more complex issues

bl.eps Log messages to a window called the console while your application is running—typically to provide live diagnostic information

bl.eps View the console output from previous runs

Pause execution at any point in the ...

Get Xcode® 4 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.