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 14. Debugging techniques > Understanding NSLog

14.2. Understanding NSLog

In this book you’ve utilized the NSLog function extensively to emit diagnostic messages to the Xcode debugger console window. What you may not realize is that NSLog continues to log messages even when your application is used outside of the debugger. It even logs messages once a user purchases your application from the iTunes App Store and runs it on their own device. Where do these log messages end up, and how do you retrieve them?

To answer these questions, deploy the DebugSample application onto your real iPhone or iPad device, and run the application a couple of times (see appendix A for details if you haven’t done this before). When you reconnect the device to your computer, you can bring up the Xcode Organizer window (Shift-Cmd-2), which should look similar to figure 14.2.


  

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