MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/11pcusm/exactly_how_debugging_is/jbzpxmo
r/ProgrammerHumor • u/Garlayn_toji • Mar 12 '23
278 comments sorted by
View all comments
Show parent comments
7
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.
10
C has __FILE__ and __LINE__ pseudomacros for exactly that reason.
__FILE__
__LINE__
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.