Digging into deeper debugging depths, we show how many crashing bugs are by their nature hard to find, but how Xcode's improvements over the last few years make it much easier. First, we start with Obj-C exceptions like arrays out of bounds, which ordinary blow you out to main.m with little idea of where the true problem occurred. By using an exception breakpoint, you can stop execution at the very line that throws the exception, thereby revealing the bug. With the Main Thread Checker, crashes that result from modifying the UI from a non-main thread are also revealed right at the line that causes them. And with the Address Sanitizer, crashing bugs caused by memory management mistakes in C can be clearly identified and fixed.
Xcode on the Mac App Store: geo.itunes.apple.com/us/app/xcode/id497799835?mt=12&at=10l4Gc
Xcode Treasures eBook: pragprog.com/book/caxcode/xcode-treasures