Tracing system calls on Mac OS X

Tracing system calls on Mac OS X is incredibly simple with dtruss (which is just a shell script that wraps a fancy configuration for dtrace):

  sudo dtruss -f ~/scratch/bla.sh

The -f instructs dtruss to also trace system calls for forked child processes (which I usually want).


56 Words

2014-08-06T13:30:00.001-07:00