Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming
by Maurice Sharp, Erica Sadun, Rod Strougo
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access