News for hackers. Stuff that matters.
Re:Strace-macOS: A clone of the strace command for macOS by cyberpunk on Wednesday November 19, 2025 @04:18AM (#45977482)
Silly question but doesn’t macos ship with dtrace? So why not use dtruss?
Re:Strace-macOS: A clone of the strace command for macOS by agsnu on Wednesday November 19, 2025 @05:13AM (#45977823)
Barely supported by Apple these days - in addition to needing to disable SIP which is a pain, it was broken causing system freezes for several major macOS releases.
Re:Strace-macOS: A clone of the strace command for macOS by owyn on Wednesday November 19, 2025 @04:33AM (#45977585)
dtruss requires disabling SIP. This seems like a better option for basic "what just happened?" debugging.
Re:Strace-macOS: A clone of the strace command for macOS by saagarjha on Wednesday November 19, 2025 @04:31AM (#45977569)
You need to disable SIP to use DTrace
Re:Strace-macOS: A clone of the strace command for macOS by Citizen8396 on Wednesday November 19, 2025 @07:23AM (#45978728)
Not entirely. You can selectively remove protections:

csrutil enable --without dtrace

Re:Strace-macOS: A clone of the strace command for macOS by saagarjha on Wednesday November 19, 2025 @10:32AM (#45980839)
That’s disabling SIP
Re:Strace-macOS: A clone of the strace command for macOS by pjmlp on Wednesday November 19, 2025 @06:00AM (#45978130)
Another silly question, did everyone forgot about instruments?
Re:Strace-macOS: A clone of the strace command for macOS by viraptor on Wednesday November 19, 2025 @06:51AM (#45978460)
Does instruments allow you to track file reads/writes and other syscalls/mach stuff? Their docs are quite bad at describing the capabilities, so I'm not really sure. From what I can see it's a profiler rather than a tracing tool.
Re:Strace-macOS: A clone of the strace command for macOS by youngtaff on Wednesday November 19, 2025 @06:16AM (#45978235)
Isn't Instruments built on dtrace?