Debug like a Pro

🇮🇹 Swift Heroes on 14 Nov 2018
iOS debugging Xcode LLDB

The majority of engineers either debug using print()/NSLog, or utilise debugger for po command and ordinary breakpoints. However, Xcode and its debug tools give way more power, starting from the LLDB command language and runtime breakpoints logging to Instruments for performance and CPU investigations. I will cover the best practices, talk about most recent changes from WWDC 2018 and show quite a few examples, where meaningless at a first sight error message can be expanded to a call to action using proper debug tools. By the end of the talk, everyone should learn how to debug like a pro.

About this talk

What does this talk cover?

Xcode debugging beyond print() and po: the LLDB command language, breakpoints that log at runtime, and Instruments for CPU and performance investigations, including what changed at WWDC 2018.

Where can I watch it?

The Swift Heroes recording is embedded at the top of this page. There's also a second edition, Debug like a Pro v2, with its own page and slide deck.

Related consulting

When an app is slow or crashing in production, this is what I get hired to fix - Instruments traces included.

App Performance & Crashes