To boot a kernel so it can be debugged by an attached machine, override the kdp_match_name boot-arg with the appropriate ifconfig interface. Ethernet, Thunderbolt, and serial debugging are supported, depending on the hardware. Use LLDB to debug the kernel: xcrun -sdk macosx lldb <path-to...
By default, the kernel reboots in the event of a panic. This behavior can be overriden by thedebugboot-arg --debug=0x14ewill cause a panic to wait for a debugger to attach. To boot a kernel so it can be debugged by an attached machine, override thekdp_match_nameboot-arg with the...