Some notes on strace

I’ve been meaning to write a little on strace for a while. I use it fairly often, but as with everything it seems that there’s always a lot more to learn.


I was reading about a new perl module, Devel::Trace::Syscall which can be used as a perl debugger module to print stack traces when certain syscalls occur (perl -d:Trace::Syscall=$ARGS $SCRIPT).

There are a few more nice strace blogs posts by Julia Evans. One of the ideas I’d not thought of before is using the -c option (count call time) to assist with troubleshooting performance (which is mentioned here among other places.