strace is a system call tracer, i.e. a debugging tool which prints out a trace of all the system calls made by a another process/program.
http://sourceforge.net/projects/strace/