COMMUNITY

How to use trace or print in Macro code?

how to use trace or print in Macro code?

What’s wrong with trace in macro? It’ll print its value during compilation when the macro is run.
What are you trying to do and what doesn’t work?

If you want to return a trace from a macro you’ll need reification with something like return macro trace("Hello"); or return macro trace($v{myMacroVar});.