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.
17
u/laidlow Feb 09 '17
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.