2
Stop using 'print' to debug everything, it's making your code a mess
I was helping a friend with their first Python project and their script had over 30 print statements just to track a simple loop. They said they saw it in a YouTube tutorial from 'Coding with Kevin' last month. It took me 15 minutes to clean it up and replace it with a proper debugger in VS Code. Now they can actually see variable values step by step without all the clutter. How do you guys track down bugs without making your code unreadable?
2 comments
Log in to join the discussion
Log In2 Comments
the_joel7d ago
Totally agree, debuggers are a game changer.
2
tyler_hunt727d ago
Heard some devs say they learn more from print statements, you buy that?
6