News for hackers. Stuff that matters.
Re:Ask HN: Why are we not using debuggers more? by anamax on Thursday August 18, 2022 @03:05PM (#32513589)
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.

Re:Ask HN: Why are we not using debuggers more? by roflyear on Thursday August 18, 2022 @03:19PM (#32513753)
How do you step through your code to understand what EXACTLY is happening to the data without a debugger?
Re:Ask HN: Why are we not using debuggers more? by anamax on Friday August 19, 2022 @08:57PM (#32527947)
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.