4 ms·
I peripatetically dive into "strace" for one-off debugging - is there something more modern I should be doing?
by mherdeg 5y ago
I peripatetically dive into "strace" for one-off debugging - is there something more modern I should be doing?
- virchau13 5y agoFor Linux, look at the eBPF tools - they're really useful[0]. I've used them to troubleshoot annoying problems before, and they're far more practical to use than the usual `strace -f ./program` dance. Troubleshooting system issues can also be done with SystemTap[1], which looks cool, but I haven't personally tried it yet. [0]: A cool example of using them is https://www.brendangregg.com/blog/2021-08-27/slack-crashes-secret-stderr.html https://www.brendangregg.com/blog/2021-08-27/slack-crashes-s.... [1]: https://www.sourceware.org/systemtap/ https://www.sourceware.org/systemtap/
- Too 5y agoPerf. Extremely powerful. Mostly for profiling and also some scenarios of debugging. Takes a fair bit of getting used to and each debugging session need more setup, compared to just a quick strace. When working with containers it’s even more complicated to setup unfortunately.