Chapter 9. Debugging Your Applications

Xcode provides a comprehensive set of well-integrated tools to approach the tasks of debugging and analyzing your applications. In this chapter, you’ll learn how to use Xcode’s built-in debugger and static analyzer. In Chapter 15, you’ll learn more advanced debugging techniques.

Interactive Debugging

For runtime debugging, Xcode now integrates the LLDB debugger by default. This replaces the Gnu Debugger (GDB), which will be deprecated in future versions of the tool chain, though it is still available for die-hard fans and is configured through the build system (see Chapter 13). Xcode provides a UI for managing breakpoints, controlling program execution, exploring the threads and stacks of the running application, ...

Get Mastering Xcode: Develop and Design, 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.