strace

Trace system calls and signals for Linux process debugging

brewmacoslinux
Try with needOr install directly
Source

About

Diagnostic, instructional, and debugging tool for the Linux kernel

Commands

strace

Examples

Trace all system calls made by a command$ strace ls -la
Attach to a running process and trace its system calls$ strace -p 1234
Count and summarize system calls with timing information$ strace -c -e trace=file curl https://example.com