r/Python • • Sep 19 '26

Discussion What’s a debugging technique that saved you hours and you wish you’d learned earlier?

I’m curious about the small debugging techniques that make a big difference when working on real projects.For developers with some experience, what debugging technique or habit has saved you the most time?It could be something simple that beginners often overlook.

What’s one debugging tip you wish someone had taught you when you were starting out?

151 Upvotes

159 comments sorted by

View all comments

Show parent comment

0

u/Gnaxe Sep 19 '26

1

u/nicholashairs Sep 20 '26

There's good advice in here, especially given how much logging is abused by developers.

But it doesn't change the fact that logging is a useful tool even when used incorrectly.

1

u/fiddle_n Sep 20 '26

The core of the author’s argument seems to be “where you actually need logging use Sentry”. But it’s not the case that everyone can just go and do that, and even if you have the ability to decide that are you really going to set it up for absolutely everything you choose to write?