3 ms·
If you're at the point where you need to attach a debugger, in production, you have already lost. I don't care how much you like debuggers and debugging. Anythi
by mirceal 4y ago
If you're at the point where you need to attach a debugger, in production, you have already lost. I don't care how much you like debuggers and debugging. Anything, but the most trivial, single-threaded code will be problematic to debug.
So? What do you do?
Logging at the right level + turn up logging. Metrics - proper metrics. Core dumps.
Debugging turns into an exercise of grepping/inspecting the logs/metrics and/or working with the dump. Anyone that tells you differently is massaging the truth.
- guhidalg 4y agoI agree. In today's world of cloud services, good logging is the single most important way to debug issues.