O
1

Just learned that debuggers can step through code line by line - total game changer for me

I was watching a YouTube tutorial yesterday and the guy showed how to use the built-in debugger in VS Code. I always just used console.log to figure out what my code was doing, but stepping through each line and seeing the variables change in real time blew my mind. Has anyone else been sleeping on debuggers this long?
3 comments

Log in to join the discussion

Log In
3 Comments
holly_henderson86
My buddy just told me the same thing, he was stuck for 2 days debugging a loop.
6
blake_bell29
Wait until you find out about conditional breakpoints (you can set a breakpoint that only triggers when a variable equals a specific value). That alone saved me hours of clicking "step over" through loops.
4
holly_sanchez75
@blake_bell29 do you mostly use those in JavaScript or other languages too? I've only messed with them in Python but wondering if it's worth learning for other stuff.
1