News for hackers. Stuff that matters.
Re:Go's Tooling Is an Undervalued Technology by axaxs on Wednesday January 22, 2020 @04:16AM (#22115909)
This is a hard question to answer easily, IMO. I find that Java folks tend to overuse the debugger, spending 20 mins stepping through something that a simple value print would have solved.

That said, some code -really- needs a debugger. You can theoretically spend hours adding prints everywhere, but even that pales in comparison.

In short, I find that the need for a debugger is rare, but when you do need it, it's irreplaceable.

Re:Go's Tooling Is an Undervalued Technology by anthonypasq on Wednesday January 22, 2020 @11:59AM (#22119325)
If you know where something is going to go wrong and strategically put a print statement, how is that better than just putting a breakpoint there?
Re:Go's Tooling Is an Undervalued Technology by crimsonalucard on Wednesday January 22, 2020 @12:00PM (#22119330)
There's literally no difference between a print and a breakpoint except that the print you actually have to write code while a breakpoint not only do you don't have to write code... you can see the entire program state.

There is literally no argument here. Debugging with breakpoints is categorically less work.

When you see people stepping through code it's because they don't know where the error occurred. It's the equivalent of putting print statements everywhere. You tell me which one is better.... littering your code with print statements? or breakpoints?