Re:Ask HN: What’s a good laptop for software development at ...
by jlokier on Wednesday April 20, 2022 @08:59AM
(#31096213)
> Are you serious? There is nothing comparable to strace on MacOS?
There's dtruss, but the information and options are nowhere near as useful as strace, and for some system calls it prints errors instead. read() and write() print access errors so you can't see what's read and written, same with stat/fstat, you just get an address, no file information.
Perhaps strace could be ported to MacOS but it's not. "brew install strace" says "strace: Linux is required for this software." :-)
There's dtruss, but the information and options are nowhere near as useful as strace, and for some system calls it prints errors instead. read() and write() print access errors so you can't see what's read and written, same with stat/fstat, you just get an address, no file information.
Perhaps strace could be ported to MacOS but it's not. "brew install strace" says "strace: Linux is required for this software." :-)