>
You need to use sudo.Sigh.
» sudo dtrace echo hi
dtrace: system integrity protection is on, some features will not be available
dtrace: no probes specified
(last command returned 1.)
» sudo dtruss echo hi
dtrace: system integrity protection is on, some features will not be available
dtrace: failed to execute echo: Operation not permitted
(last command returned 1.)
»
There's a
host of problems that come with that, though: how do you then execute the tracee? If your problem is nice & simple and
works under root, that's great I suppose, but it always seems like some access to $HOME destroys that possibility for me.
Then there's that, even ignoring all that … I've still yet to figure out a minimal example?
Give me a barebones minimal example. Every article I hit on this tool is right into space shuttle levels of complexity. That's what makes strace the winner.
> As long as you use it properly, i.e. not like an alias for strace the way you tried here.
… "you're holding it wrong."