On Thu, 28 Mar 2024 at 20:08, Gaius Mulley wrote:
> So, I'd recommend you try working with an external template expansion utility and then see how this works out.
I concur, as a side note it is possible to insert line directives into
the processed source to direct the debugger to the original source.
So for example:
# 123 topsource.mod
some mangled m2 code
when compiled with gm2 -g will contain debugging info relating "some
mangled m2 code" to line 123 in file topsource.mod. I find this feature
useful to toggle on/off depending the level of debugging required.
But you still don't see the actual source that the compiler sees after internal and hidden template expansion. This increases your mental load very significantly because you constantly have to compose in your head what the result of the expansion will be.