Chapter 15. Improving Code Quality

The disciplines of debugging, unit testing, and analyzing your code go hand in hand. Xcode benefits from a powerful set of built-in tools that help you accomplish these tasks without having to leave the application suite. With a mastery of these tools, you will be able to produce higher-quality code that ships with fewer bugs and better performance.


In Chapter 9, we took a brief tour into the world of debugging but left some of the more in-depth topics for this chapter. Xcode debugging is built upon the foundations laid by the LLDB debugger, so we will explore some of its powerful console-based features, as well as some that are exposed through the Xcode user interface.

Observing and Modifying Variables ...

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.