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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.