Zulip Chat Archive

Stream: new members

Topic: how to debug a macro


ZHAO Jiecheng (Nov 30 2023 at 07:22):

I am learning macro, but when It throws errors, I still don't know what was happened. Is there any way that I can read the text generated by the macro generated (even it is illegal)?

Mario Carneiro (Nov 30 2023 at 07:34):

not very easily, but you can see the macro expansion trace in set_option trace.Elab.info true output

ZHAO Jiecheng (Nov 30 2023 at 09:27):

Mario Carneiro said:

not very easily, but you can see the macro expansion trace in set_option trace.Elab.info true output

It looks like too much info in the trace. As I am not familiar with macro, I may need something more clean and helpful.

Alex J. Best (Nov 30 2023 at 18:33):

A #mwe would be helpful here, so we can see better what sort of macro's you have


Last updated: Dec 20 2023 at 11:08 UTC