Chapter 14. Debugging techniques

 

This chapter covers
  • Creating a buggy application
  • Using NSLog
  • Controlling leaks with Instruments
  • Detecting zombies

 

There’s nothing worse than being close to releasing a new application and in your final once-over finding a particularly nasty application crash that seems to have no obvious cause. Even during day-to-day development of your application, it’s unlikely that you’ll write perfect code the first time around, so understanding how to debug your application in the Xcode environment is an important skill.

The Xcode environment integrates a large number of debugging and code analysis tools, but as usual, their true power is only unleashed if you know which tool to use and how and when to use it. A ...

Get Objective-C Fundamentals 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.