←back to thread

167 points jgrahamc | 9 comments | | HN request time: 0.204s | source | bottom
1. pjc50 ◴[] No.43556448[source]
Plus points for using strace. It's one of those debugging tools everyone know about for emergencies that can't be solved at a higher level, and a great convenience of using Linux. The Windows ETW system is much harder to use, and I'm not sure if it's even possible at all under OSX security.
replies(4): >>43556850 #>>43556932 #>>43556945 #>>43560887 #
2. throwway120385 ◴[] No.43556850[source]
I have solved an incredible number of problems just by looking at strace output very carefully. Strace combined with Wireshark or Tcpdump are incredible as a toolset for capturing what a program is doing and for capturing what the effect is either on the USB or the NIC.
3. dontlaugh ◴[] No.43556932[source]
macOS’s Solaris-inspired dtrace is actually nicer, especially the UI.
replies(1): >>43558195 #
4. frizlab ◴[] No.43556945[source]
macOS has dtrace which is actually nicer to use. Cannot be used on all processes when SIP is on though.
replies(1): >>43556997 #
5. pjc50 ◴[] No.43556997[source]
Last time I tried SIP prevented me from using it on my own processes, but I may have been holding it wrong.
6. pjc50 ◴[] No.43558195[source]
Is there a guide for how to use this, including the UI, with SIP on?
replies(1): >>43559522 #
7. jntun ◴[] No.43559522{3}[source]
Instruments is implemented under-the-hood with dtrace, that could be what they are referring to.
replies(1): >>43559721 #
8. dontlaugh ◴[] No.43559721{4}[source]
Yes. Most things run well with Instruments attached. I’ve only used the dtrace cli a few times.
9. mrguyorama ◴[] No.43560887[source]
The chrome folks built https://randomascii.wordpress.com/2015/04/14/uiforetw-window... to improve ETW usability.

You usually don't need that full industrial level tracing though on Windows! Process Monitor is 95% of the solution for most people, and provides very similar functionality to strace, if a lot easier to read.