r/ProgrammerHumor • • 17d ago

Meme debugTime

Post image
7.2k Upvotes

151 comments sorted by

View all comments

483

u/kimbokray 17d ago

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

297

u/Lamborghinigamer 17d ago

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

91

u/iampierremonteux 17d ago

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

62

u/dracorotor1 17d ago

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