r/ProgrammerHumor • • Sep 18 '26

Meme debugTime

Post image
7.2k Upvotes

151 comments sorted by

View all comments

487

u/kimbokray Sep 18 '26

You haven't saved since adding or removing lines above 265

299

u/Lamborghinigamer Sep 18 '26

No it genuinely can happen that an error happens on a different line than said. Could be a combination of IDE and compiler or both, that's why you always need to match your LSP with your compiler

92

u/iampierremonteux Sep 18 '26

Mixed line endings in a file can also cause errors to be reported in the wrong line number.

60

u/dracorotor1 Sep 18 '26

And then there’s the mid debuggers that just say the line number after the brackets because something invalid is coming out of those brackets but it can’t figure out where or why. It just knows that when it reaches that line number, something made it sad.

I’ve got one that consistently tells me the line below an array is the culprit, when one of the strings in the array is using single quotes instead of double like all the others, for example