Strace-macOS: A clone of the strace command for macOS
github.com108 points by signa11 4 months ago
108 points by signa11 4 months ago
Neat, though I'm guessing it's pretty slow.
Tip for anyone reading: If you only need to trace file accesses or command executions, `eslogger lookup` and `eslogger exec` respectively will give you what you need (albeit in the form of a not-particularly-friendly JSON blob).
Modulo I haven’t tried it yet it’s been an irritant that SIP broke tracing so this is a welcome development, thank you.
This triggered a small emotional reaction. I really miss the days when Apple made real effort toward servers with MacOS X Server and Xserve. Hopefully, since they're using their own hardware/software internally for servers, Apple may one day go back down that road.
Love it. I've never successfully used dtruss without hardlocking my system, so it's nice to see that this isn't a wrapper around that.
The bug for this was fixed in Tahoe
For the whole dtrace system?
Yes
Fantastic news, thanks for sharing. I stopped looking into it after some spectacularly bad hard lockups, some in prod…
Considering you need to turn off SIP to use it, I would not recommend using DTrace in prod…
You need to escalate to root to run it anyway. If anyone can get root on my laptop, there's nothing that SIP can realistically protect me from. Actually, if anyone can get access to my user outside of sandbox, everything I care about is already exposed.
(Also, you can disable it only for dtrace if you want)