dtruss is analog of strace in linux. It allows you to trace system calls from a running process or run a process with tracing. Also we are take a look on an alternative way.