O'Reilly logo

Xcode® 4 by Richard Wentk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required