Following the instructions found here as well as around the Developer Forums, I've successfully managed to begin debugging my system extension on a virtual machine.
Unfortunately, after archiving my system extension and copying over the .app
file to my virtual machine, my .app
loses access to the source code (on my host machine) and hitting any beak points via lldb
yields me hard-to-read assembly code.
How do I also get source code when attaching lldb
to a system extension?
It’s basically impossible to debug an ES client interactively. The problem is one of recursion. The debugger relies on many operations that run through the ES client, so if you’ve stopped the ES client so that you can inspect its state then you basically deadlock (only recovering when the ES watchdog kicks in).
As to what you can do, see this post.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"