Hacker News new | ask | show | jobs
by eitland 283 days ago
I see it the exact other way around:

- everyday bugs, just put a breakpoint

- rare cases: add logging

By definition a rare case probably will rarely show up in my dev environment if it shows up at all, so the only way to find them is to add logging and look at the logs next time someone reports that same bug after the logging was added.

Something tells me your debugger is really hard to use, because otherwise why would you voluntarily choose to add and remove logging instead of just activating the debugger?

1 comments

So much this. Also in our embedded environment debugging is hit and miss. Not always possible for software, memory or even hardware reasons.
Then you need better hardware-based debugging tools like an ICE.