That's a problem I'm aware of, having occasionally needed to use a non-printf style of debugging (though mainly to get a stack trace, it's still relevant). If the C compiler were to annotate the source-line information better for debugging symbols, this sort of thing would not be a problem.
I have contemplated fixing this in the two major FOSS C compilers (gcc and clang), since that would then let me shorten PDL-generated C code even more by having a macro for the repeated "Code" part, but I have not yet done so. | [reply] |