3 ms·
Actually this tool is not only for Sysadmin's - it is very helpful for developers. I know there are other tools like gdb, etc. But if you have to use (calling f
by reirob 14y ago
Actually this tool is not only for Sysadmin's - it is very helpful for developers. I know there are other tools like gdb, etc. But if you have to use (calling from your program) other programs, or if the library that you use does something strange, then strace is a shortcut.
From this article I learned that strace can be called to analyse an already running process (-p).
- bingaling 14y agoIt's possible to pass up to 32 -p arguments. For example, tracing multiple apache worker processes: strace `ps -C httpd -o pid= |xargs -Ix echo -n '-p x '`