WHAT'S IN THIS CHAPTER?
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
In a perfect world, debugging software would not be necessary. Everything programmers created would be perfect. Unfortunately, the world is not perfect, and occasionally you will write buggy software. However, with the right tools at your disposal, even the most challenging of bugs can be detected with ease. Xcode includes a very important tool, the debugger that you can use to track down problems in your code, helping you to detect and diagnose bugs and, more importantly, fix them with a minimal amount of effort. This chapter introduces you to debugging concepts and the use of lldb, the debugger that ships with Xcode as part of its LLVM compilation suite.
Even the best of programmers write buggy software. Often, bugs are fairly obvious. In the worst case, they cause programs to crash, or to behave improperly, or to not work at all. These bugs are often easy to re-create and track down, and merely having some knowledge of how the software is written ...