this post was submitted on 10 Sep 2023
290 points (94.2% liked)
Programmer Humor
21016 readers
1934 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Bad variable names and then awful "temporary" log lines... I feel attacked this morning. ;)
It blows my mind how often i see people using temp logs for debugging when breakpoints exist
When the issue is only seen after hours of runtime, logging is more practical.
Or when the overhead of the debugger causes the issue to never happen
Idk... I had problems in the past with weird bugs where the breakpoints do not match the right line although using sourcemaps and all that so sometimes you end up doing stuff like this. Or if you want to know how many times something executes without well having to "continue" on each breakpoint or similar.