14. Instruments and Debugging

Apps are complex, with at least tens of classes, sometimes more. There are also storyboards, XIB files, resources, and more. The chances of getting so much code and work right the first time is very small. Issues can range from slowness in the interface to crashes. Luckily, Xcode provides powerful tools for checking your running application and for finding bugs.

Instruments provides a view into a running app, helping you find performance issues, memory use, leaks, and other useful information. The debugger lets you step through code, inspect variables, and even play sounds when lines of code are hit.

This chapter introduces you to these powerful tools. First, you explore Instruments and learn what kinds of information ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming 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.