strace

strace is a diagnostic, debugging and instructional userspace utility for Linux