r/Python • u/Harshita_Netla • 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
View all comments
Show parent comment
45
u/DNSGeek Sep 19 '26
Set the level to DEBUG and log everything. When you’re releasing it, set the minimum logging level to INFO or higher and all your debugging data just doesn’t get logged any more.