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

Programmer Humor

32435 readers
573 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 48 points 1 year ago (6 children)

I believe in a conspiracy theory that nobody uses debuggers.

[–] [email protected] 26 points 1 year ago (2 children)

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

[–] [email protected] 10 points 1 year ago

It does for me!

[–] [email protected] 3 points 1 year 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.

[–] [email protected] 10 points 1 year ago (1 children)

I use them daily. It makes it so much easier to work with an existing code base

[–] [email protected] 5 points 1 year ago (1 children)

Yep. Once you get the hang of it, you will cringe to think of all the wasted effort that came before. But getting the hang of it takes dedication.

[–] [email protected] 1 points 1 year ago

Thankfully I use python mostly and pycharm makes it easy-ish to get the debugger hooked up to a project. But learning that process definitely took a few days

[–] [email protected] 3 points 1 year ago

Does this include C programmers? I've definitely found GDB to be indispensable in the past (or maybe that's what they would want you to think).

[–] [email protected] 2 points 1 year ago

I can record a video tomorrow if it helps?

[–] [email protected] 2 points 1 year ago

After decades of print debugging I finally got dap up and running in vim. It is very nice. Would recommend.