3 ms·
TIL strace[1] exists. What a handy tool! 1. https://jvns.ca/blog/2021/04/03/what-problems-do-people-solve-with-strace/ https://jvns.ca/blog/2021/04/03/what-pro
by istjohn 5y ago
TIL strace[1] exists. What a handy tool!
1. https://jvns.ca/blog/2021/04/03/what-problems-do-people-solve-with-strace/ https://jvns.ca/blog/2021/04/03/what-problems-do-people-solv...
- mst 5y ago"Introduction people to strace" is one of the most effective ways I've found to improve their debugging experience. It's glorious. In case it's handy, the two options I find myself telling people about most often are: '-f' to keep tracing across forks, and '-s' to increase the number of characters of strings that get shown when you're trying to debug complete reads/writes. (filtering for specific syscalls and stuff is also really neat but most of the time I just throw a full strace into a file and chop it up with my usual unixy tools from there)