O'Reilly logo

Learning iPad Programming: A Hands-On Guide to Building iPad Apps, Second Edition by Kirby Turner, Tom Harrington

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

26. Debugging

As you develop an app, you’ll find at times that the app isn’t behaving quite as you expected. Maybe the screen layout seems off, or maybe the app is just crashing. Xcode provides a number of useful tools for finding and fixing bugs. In this chapter we’ll discuss these tools as well as the more general question of narrowing down and finding the source of problems.

Understand the Problem

The first thing you need to do when confronted with a bug is to get the most detailed, accurate picture of the problem that you can. Getting a clear picture of the bug from the outside is a crucial first step in understanding what is wrong on the inside. Diving right into the code is rarely the best approach.

What Went Wrong?

Begin by making sure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required