3 ms·
"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
by 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)