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).
sandbags
Modulo I haven’t tried it yet it’s been an irritant that SIP broke tracing so this is a welcome development, thank you.
show comments
BirAdam
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.
CGamesPlay
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.
show comments
burnt-resistor
Doesn't appear to work, and lacks pypi and brew packaging.
$ pipx install git+https://github.com/Mic92/strace-macos
installed package strace-macos 0.1.0, installed using Python 3.13.7
These apps are now globally available
- strace
done!
$ strace df -h
Error: Failed to load LLDB Python module.
Make sure you're running with system Python (/usr/bin/python3) and have Xcode Command Line Tools installed.
To install Xcode Command Line Tools:
xcode-select --install
$ sudo strace df -h
[same shit]
After fixing[0] the awkward python system requirement, it doesn't work with built-in binaries without SIP disabled, it's really slow, it colorizes output even when piping, and the colors are terrible. Better than nothing but it's currently less effort to temporarily disable SIP for dtruss and reenable it later than install this in this early form. Maybe with time it will improve, but it seems like a vehicle to aggressively advertise consulting services.
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.
Doesn't appear to work, and lacks pypi and brew packaging.
After fixing[0] the awkward python system requirement, it doesn't work with built-in binaries without SIP disabled, it's really slow, it colorizes output even when piping, and the colors are terrible. Better than nothing but it's currently less effort to temporarily disable SIP for dtruss and reenable it later than install this in this early form. Maybe with time it will improve, but it seems like a vehicle to aggressively advertise consulting services.0:
Silly question but doesn’t macos ship with dtrace? So why not use dtruss?
TIL Nix flakes work on macos - is this a legit alternative to homebrew?
[flagged]