💡
8
c/coding-for-beginners•the_leethe_lee•16d ago

Just realized how much time I wasted not using a debugger

I was stuck on a loop in my Python script for like two hours last night, just staring at the code. I finally tried the debugger in VS Code, setting a breakpoint on line 15 where the loop started. Watching the variable values change step by step showed me my counter was resetting wrong. Has anyone else had that 'aha' moment with a debugger, or is there a better tool for beginners?
3 comments

Log in to join the discussion

Log In
3 Comments
cole_baker
cole_baker15d ago
Saw a tweet from avery_jackson about print statements.
3
marywilson
marywilson16d ago
Print statements were my debugger for years, honestly.
2
avery_jackson
Yeah, the "for years" part hits. I still drop a print in new languages before I even look up their proper debugger. It's like a universal first step, you know? Lets you see the raw flow before you get into fancy tools.
3