Using the debugger is better than littering code with print statements. It seems daunting at first but it will save you so much time troubleshooting bugs.
Depends on the bug. Memory errors is usually easier to find in the debugger. Semantic errors ofter require devising unit tests with generous printouts.
Meh, each has their place. If I want a memory dump of what different variables are each time it reaches a certain point in a loop, I'll use a print statement. Much easier than stopping each time and then reading it through debugger.
I was looking at every other possible mistake in there except possibly messing up something that I've done so many times it's just on autopilot, drove me mad that my output was terribly wrong or null every time
16
u/ekfslam Feb 09 '17
I can't believe you didn't use the old school print statements to test that.