13
Why does nobody talk about using print statements to debug JavaScript in VS Code?
I was stuck on a loop for 45 minutes at my desk today, so I just started throwing console.logs everywhere to see where my variable was breaking, and it finally clicked. Has anyone else found a better trick for tracing issues without using a full debugger?
2 comments
Log in to join the discussion
Log In2 Comments
sullivan.john29d ago
Nothing fancy but adding a watch expression in the debug panel helped me skip the print statements.
1
terry_hayes1829d ago
Watch expressions just clutter the panel, print statements are fine.
7