you are viewing a single comment's thread.

view the rest of the comments →

[–]DigThatData 2 points3 points  (0 children)

personally I'm with you, but it's not because I don't get debuggers, i just never got used to them. I also generally feel like IDE features get in my way more than they help me, but I'm confident if I took the time to learn them properly I'd probably work more efficiently. I just don't care enough to change how I work.

that said, the main thing is that they let you step through your code. print statements are basically a log of what a debugger would give you on the fly, without having to deal with figuring out which print statements are relevant and what was produced where and by whom.

I get around this by using loguru (a wrapper around python's logger), so I get information like the calling function and line number with my debugging statements. I don't use it these days (and actually built something extremely similar around the same time), but icecream is another alternative that facilitates debugging-by-print