3 ms·
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 convenie
by pjc50 2y ago
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.
- throwway120385 2y agoI 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.
- dontlaugh 2y agomacOS’s Solaris-inspired dtrace is actually nicer, especially the UI.
- frizlab 2y agomacOS has dtrace which is actually nicer to use. Cannot be used on all processes when SIP is on though.
- pjc50 2y agoLast time I tried SIP prevented me from using it on my own processes, but I may have been holding it wrong.
- mrguyorama 2y agoThe chrome folks built https://randomascii.wordpress.com/2015/04/14/uiforetw-windows-performance-made-easier/ 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.