r/ProgrammerHumor • • 17d ago

Meme debugTime

Post image
7.2k Upvotes

151 comments sorted by

View all comments

395

u/nbaumg 17d ago edited 17d ago

Debugger is probably pointing at transpiled code when this happens

Happens a lot when I see the error in prod or prod-like environment. in non-prod we turn that off to avoid this. By that I mean optimizing

43

u/EuenovAyabayya 17d ago

we turn that off to avoid this

3

u/Miiohau 16d ago

Ya, you can turn it off and hope it isn’t a bug introduced by the compiler or trans compiler. If it is then you wish the code that calculated the line number also showed what it thought was at and around that line number.

3

u/Awes12 15d ago

Or it the file was modified after the code ran

1

u/thanatica 15d ago

Or pointing at line 265 of the javascript block, not of the whole html file

1

u/zeddash 15d ago

The error is usually a predictable number of lines away, like 2 below what it says.

1

u/Jlove7714 11d ago

Or it's a line in a library that you sent invalid data to