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 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.