this post was submitted on 30 Sep 2023
381 points (89.9% liked)

Programmer Humor

32077 readers
790 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] 80 points 11 months ago (3 children)

Because I have nested loops and only want to see certain cases and I'm not smart enough to set up conditional breakpoints or value watching

[–] HairHeel 33 points 11 months ago (1 children)

Value watching is just printf; change my mind

[–] [email protected] 7 points 11 months ago

Ackchyually, value watching in debugger almost guarantee to get the value by address, but printf in some languages can pass by value, unnecessarily make copy of the watched variable, and the value printed is the copied data instead of the original

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

Programming is also about learning your tools :)

[–] [email protected] 4 points 11 months ago

Looks like godot doesn't have it yet

[–] [email protected] 8 points 11 months ago

Someone should make that bell curve meme with people using print statements at the newb and advanced level. Debuggers are great but I'd say it's a 50/50 split for me for debugger vs logger when I'm debugging something.