T
23

Console.log debugging vs using a proper debugger, which camp are you in?

I spent my first 3 weeks of learning JavaScript just sprinkling console.log everywhere to figure out what was going wrong. Last Tuesday I finally forced myself to set a breakpoint in VS Code and step through the code line by line, and it took me 5 minutes to find a bug I'd been chasing for 2 days. Now I'm torn, the console.log method feels more intuitive for tiny scripts, but the debugger seems way better for anything with loops or functions. Has anyone else made the switch and found one approach works way better depending on the situation, or is it just me?
0 comments

Log in to join the discussion

Log In
0 Comments

No comments yet

Be the first to share your thoughts on this discussion.