I'm trying to dtruss a process in Mac OSX Catalina, however dtrace is reporting an error.
$ sudo dtruss whoami
dtrace: system integrity protection is on, some features will not be available
dtrace: failed to execute whoami: (os/kern) failure
I'm basically trying to get a stack trace. Can anyone provide guidance on accomplishing this?
Thanks
This article explains how to accomplish this: Enabling D-Trace on system with SIP
You can disable SIP entirely by doing the following:
csrutil disable
Alternatively you can re-enable SIP while still allowing dtrace
to work by also running the following:
csrutil enable --without dtrace