28 ms·
The analog to strace in macOS would be dtruss. (AFAICT after some quick Googling, Linux strace is patterned after the old SunOS command, truss. SunOS had a tra
by wahern 3y ago
The analog to strace in macOS would be dtruss.
(AFAICT after some quick Googling, Linux strace is patterned after the old SunOS command, truss. SunOS had a trace(1) utility, too, but truss is the successor with features like fork following. So basically Linux strace == SunOS truss, and in the DTrace world strace == dtruss. If I have the history wrong, please correct me.)
- deathanatos 3y agoThe history is … interesting, I guess? … but like, what we (anyone who has used strace on Linux) are looking for is an strace-equivalent to macOS. I've gone down the "maybe it's dtruss, and not dtrace? what's the difference?" branch in my attempts to get a working strace replacement on macOS, too, also without success. dtruss, on macOS, emits the same errors as what I put in another comment on this subthread. Even as root, though that would open up a whole 'nother can of worms in attempting to get a working replacement. (And now I've gone down a whole new rabbit hole of "What is SIP? How does it work?" and … I'm still no closer to actually running something that looks like strace. 2024 has got to be the year of the Linux desktop, if macOS's UX is this.)