Hacker News new | ask | show | jobs
by anamax 1406 days ago
I avoid debuggers because if I can't debug something without them, said something is too complicated for me to understand now, let alone in the future. Moreover, if said something is that complicated, it is almost certainly wrong in several subtle ways.

One nice property of asserts is that they keep working even when your attention is elsewhere.

1 comments

How do you step through your code to understand what EXACTLY is happening to the data without a debugger?
I haven't used a debugger in 20+ years.

If I don't understand what is happening to data without stepping, the code is too complicated.

If it's too complicated, I don't understand it now, won't understand it later, and it's probably wrong.

If I was working (again) in embedded systems, I might use a debugger as a substitute for print.