Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Using the Debugger

Xcode’s integrated debugger provides a valuable tool for iPhone application development. The following walk-through shows you where the debugger is and provides a few basic ways to use it with your program. In these steps, you’ll discover how to set breakpoints and use the debugger console to inspect program details.

Set a Breakpoint

Locate the loadView method in your Hello World program. Click in the leftmost Xcode window column, just to the left of the closing bracket. A blue breakpoint indicator appears (see Figure 1-5). The dark blue color means the breakpoint is active. Tap once to deactivate—the breakpoint turns light blue—and once more to reactivate. You can remove breakpoints by dragging them offscreen and add them by clicking in the column, next to any line of code.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint