1850
submitted 11 months ago* (last edited 9 months ago) by awesome_person@lemm.ee to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] HairHeel@programming.dev 24 points 11 months ago

console.log counts as “a debugger”, right?

[-] marlowe221@lemmy.world 10 points 11 months ago

It does for me!

[-] erogenouswarzone@lemmy.ml 2 points 11 months ago

Yes, but only because it gives you a link to where that was run. Click the link to the right with filename:lineNumber, and it will open the sources tab to that line. Set a breakpoint and rerun to pause there, then step through the code's execution.

Of course, if you're using minified or processed code, this will be more difficult, in that case figure out how to do it in VS Code.

this post was submitted on 07 Jul 2023
1850 points (98.3% liked)

Programmer Humor

31214 readers
1613 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS