Hacker News new | ask | show | jobs
by cadamsdotcom 12 days ago
This still does not make a debugger the best use of your time.

Consider: The only way to debug is to repro the crash.

If you can repro the crash you can write a test case!

1 comments

Okay, you write the test case and it fails. Now what?
Modify the test case, modify the code, run it again. Add logging, add assertions. Iterate.

So you still debug it - but sans debugger!

Made your fix? Now polish it up. Downgrade the log level to debug, neaten up the tests. In the time it would've taken to click your debugger a thousand times and install three dozen watches, you instead improved the observability and added permanent regression prevention.