Member-only story
Debug Swift with LLDB (WWDC 2022)
Worth Watching?
Now, I thought that I’d adequately covered debugging with LLDB in my previous article: https://stevenpcurtis.medium.com/use-lldb-to-dynamically-change-code-in-xcode-4eae758cdc03, and I do like that.
However, this year at WWDC there is a new video called Debug Swift Debug with LLDB. Is it worth watching?
Read on to find out whether this year’s video is worth watching as I’ve seen the video before. So you don’t have to watch it (if you don’t want). If you do, please watch the video in the Apple developer portal rather than reading this article as this is really just my notes from that video
There’s nothing more to say, so let’s get started with this exploration!
Before we start
There is no debugger support in playgrounds, so not even breakpoints work. In this case, we need to use a project in order to follow along with either this article or the video.
Use po or p?
I’ve covered po
in my previous article. However, this video goes further.
It expects that we know the difference between p
and po
.
I don’t know about you, but I usually use po
when I’m using the debugger.