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
  • PrintPrint
Share this Page URL
Help

Chapter 11: Debugging Your App > Using Xcode’s Debugger

Using Xcode’s Debugger

You debug your application by launching it from within Xcode. I follow this procedure when I want to debug my apps:

1. Click the Hide or Show the Debug Area View button in the toolbar to reveal the Debug area if it’s not already visible.

The Debug area opens in your project window (see Figure 11-4).

9781118032220-fg1104.tif

Figure 11-4: You see this window when you’re ready to dive into your code line by line.

2. Click the Run button to launch your app.

tip_4c.eps You probably want to resize the project window so that you can see your app and the project window next to each other (which is one of the many reasons why bigger screens and multiple displays are better). Figure 11-5 shows you what SimpleCocoaWindowApp looks like next to the Project window.


  

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
  • PrintPrint