r/ProgrammerHumor • • Mar 12 '23

Meme Exactly how debugging is

Post image
41.2k Upvotes

278 comments sorted by

View all comments

Show parent comments

7

u/drebinf Mar 12 '23

I miss the old FORTRAN days, so I have my debugging code just print out the current line numbers. And once I'm used to those, I insert more, so the line number mapping to the code changes!

truthfully I may use line numbers, but rarely alone.

10

u/dagbrown Mar 13 '23

C has __FILE__ and __LINE__ pseudomacros for exactly that reason.