4 ms·
If you feel that lsof is the swiss army knife of unix debugging, then you haven't done much serious unix debugging. Don't get me wrong, lsof is useful and even
by yan 17y ago
If you feel that lsof is the swiss army knife of unix debugging, then you haven't done much serious unix debugging. Don't get me wrong, lsof is useful and even indispensable in some situations, but not exactly be-all-end-all.
DTrace fits that description much closer, even though its only available for OpenSolaris, OS X, I believe FreBSD has a port and Linux is getting one.
edit: also see: strace, ltrace, gdb, truss
- woadwarrior01 17y agoThats the first thing that came to my mind when I read it as well. DTrace (and strace to a lesser extent) are the first things which come to mind whenever you've got to debug anything or atleast get a clue about whats going on in a runaway process.
- clutchski 17y agoYeah, the headline is a poor analogy for an otherwise well-written and useful atricle.
- nailer 17y agoYou'd use SystemTap for kernel-level tracing and breakpoint debugging on Linux. Check the wiki for a bunch of useful pre-cut tap files. Linux does indeed have a port of dtrace, but it's not legal due to Sun's license.
- sp332 17y agoOS X has a port of DTrace, so I doubt licensing is a big issue.
- tedunangst 17y agoWhat he meant to say is that it's not legal because of Linux's license.
- nailer 17y agoNot at all. The GPL is a much older license than the Sun CDDL, which mainly seems to have been created to stop any useful code from Solaris entering Linux.
- nailer 17y agoOS X's kernel (Mach) isn't GPL licensed.
- pkrumins 17y agoTwo swiss knives for me then. One in the right pocket, the other in the left. ;) Gonna write about strace in one of the next articles. And possibly also about dtrace in another article.