Intermediate Debugging with Xcode 8

Learn some intermediate debugging techniques with Xcode 8, such as breakpoint logging, conditional breakpoints, basic LLDB usage, and more. By George Andrews.

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?

You can download the finished project here.

As you can see, Xcode debugging tools have a lot of flexibility in meeting the day-to-day challenges you face in your development process. For example, LLDB provides 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() or 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 the day! :]

If you want to learn more, LLDB is a good place to start. A great place to begin with LLDB is Brian Moakley’s Video Tutorial: Using LLDB in iOS.

New features for LLDB were also highlighted in the WWDC 2016 session: Debugging Tips and Tricks.

If you have any questions or comments, feel free to join the discussion below!

George Andrews

Contributors

George Andrews

Author

Over 300 content creators. Join our team.