Instructions for debugging recent macos kernel versions?

Is there any recent and a bit authoritative documentation which explains how to debug recent versions of macos kernel?

I have found some blog posts from other users but those are either outdated or don't work for some other reason. I am guessing kernel debugging is pretty common for developers working on macos itself, so I'm hoping someone in this forum would have some working instructions for that.

Is there any recent and a bit authoritative documentation which explains how to debug recent versions of macos kernel?

No, nothing for arm* that's directly published by Apple. However, I'm told by an engineer on the kernel team that the arm install instructions here "work":

https://kernelshaman.blogspot.com/2021/02/building-xnu-for-macos-112-intel-apple.html

*The process for Intel hasn't really changed.

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

Instructions for debugging recent macos kernel versions?
 
 
Q