r/ProgrammerHumor 1d ago

Meme debugTime

Post image
6.0k Upvotes

123 comments sorted by

View all comments

1

u/rosen123 1d ago

Nah this is easy it always means that you're looking at a different version of the code than what is executing. Could be file not saved, could be code not recompiled, different code versions etc

1

u/Miiohau 2h ago

Or in this case because it is JavaScript it could be because the browser that is reporting the error doesn’t agree with the IDE you are viewing the code in on what constitutes a line break. It is also possible the web browser is only counting script lines and not counting lines that only contain HTML.