News for hackers. Stuff that matters.
Re:Ask HN: Why is output still popular in debugging? by sevensor on Tuesday March 06, 2018 @08:33PM (#16533678)
Different benefits come from each approach. Printing stuff out means you get a record of what happened during program execution, which you can compare to what you expect to have happened. With breakpoints, you have to keep track in your head, not only of where you are, but of where you expect to be. They can be useful too, but I probably use print statements about ten times as often.
Re:Ask HN: Why is output still popular in debugging? by tenken on Tuesday March 06, 2018 @08:38PM (#16533689)
> With breakpoints, you have to keep track in your head, not only of where you are, but of where you expect to be. They can be useful too, but I probably use print statements about ten times as often.

Thanks for putting this so clearly. That is the headache with breakpoints in complicated systems with lots of layers of indirection.