249
Debugging (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] TheDoctor@hexbear.net 10 points 1 month ago* (last edited 1 month ago)

I did both of these at once last week.

Added a breakpoint. Debugger didn’t break.

Added an echo "here";. Debugger didn’t print.

Added a throw new Exception('fuck');. Debugger didn’t throw.

Stepped through. Debugger wouldn’t let me step in.

It took me almost an hour to realize it wasn’t the debugger’s fault and that a variable I thought was guaranteed to be truthy at that point was actually falsey due to upstream changes in a spreadsheet parser. I felt kind of stupid for not trusting the debugger at that point.

this post was submitted on 20 Nov 2024
249 points (98.4% liked)

Programmer Humor

32707 readers
626 users here now

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

Rules:

founded 5 years ago
MODERATORS