Chapter 14Debugging Apps

Congratulations! We have completed all the code for our app. Now we can get started on the real work we will be doing as a developer: debugging.

Bugs happen. Even the most awesome rock-star programmer writes bugs. In truth, developers spend only a fraction of their time writing code. A lot more time is taken up by debugging that code. So one of the single biggest favors we can do for ourselves is to become fast and efficient debuggers.

In this chapter you’ll learn about several methods for debugging, starting with the most basic one, println. We’ll cover the various kinds of breakpoints, and then we’ll take a nickel tour of LLDB, Xcode’s default debugger. You will learn how to print to the console using a breakpoint ...

Get iOS 8 SDK Development, 2nd 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.