18. Debugging Objective-C

There are two sorts of programmers; those that always write perfect code the first time, and those that really exist. If you are in the former category, you can skip this chapter. If you’re in the latter category, then there will be times when you will try running your code and discover that it doesn’t work perfectly as expected.

This is an irritating experience, but it is a lot less irritating when you can quickly fix the problem. In this chapter, we’ll look at some of the techniques for spotting the cause of bugs in Objective-C programs.

Inspecting Objects

Image

From: description.m

Most of the time, when you debug an Objective-C ...

Get Objective-C Phrase Book, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.