Intermediate Debugging with Xcode 4.5

This is a tutorial for intermediate iOS developers, where you’ll get hands-on experience with some extremely useful debugging techniques. By Brian Moakley.

Leave a rating/review
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where to Go from Here?

As you can see, the debugging tools have a lot of flexibility in meeting many of the challenges that you face day to day in your development process. This provides us the ability to dynamically inspect and update your code without having to worry about injecting any additional bugs.

Believe it or not, this is just the beginning. LLDB provides a host of other features such as custom variable summaries, dynamic breakpoints, and even custom scripting of the debugger through Python.

Granted, moving beyond NSLog() debugging can be challenging, but at the end of the day, you’ll find your projects will be stronger for it. You will no longer have to worry about stripping all your debugging code on the eve of launch nor will you have to write complex macros to provide a sane debugging environment. Xcode provides you all the tools so you can relax at the end of day :]

If you want to learn more, LLDB is a good place to start. Also, check out the WWDC 2012 debugging sessions. If you have any questions, please let me know in the forum discussion below!

Contributors

Over 300 content creators. Join our team.