How can I see the definition of the macro? I come from the programming background and it would be nice to see how the macro is defined. Perhaps even better if there would be something similar to Lisp's
macroexpand-1 commands. Is there a way to stop processing and leave a REPL for tex where I can run commands or get access to the current state of the processed document.
I looked at
\meaning and I think
\meaning is kind of close to what I was looking for. However it's not really showing me the macro definition in full. As for
latexdef doesn't it just do text search in TEXMF directory ? This may not really work for dynamically defined macros and macros from modules outside of TEXMF.
I am asking this in the context of
ConTeXt so perhaps the fact that it uses LuaTeX could be helpful for me.