TeX (and all newer engines) has the primitive \show which helps me probe macros, and most of the time is enough to understand/remember the implementation (rather than having to go back to the source code).
Is there something similar for Lua commands? For instance, Heiko Oberdiek has written replacements for some pdfTeX primitives in LuaTeX, and I'd like to get more information about them using some hypothetical \showluatexcmd macro.
\input pdftexcmds.sty
\catcode`@=11
\show\pdf@strcmp
%\showluatexcmd{oberdiek.pdftexcmds.strcmp}
\bye
dismodule. Actually,luac -lmay help. Also, what does "what" mean in the debug info? – Bruno Le Floch Feb 01 '12 at 14:10dismodule is a disassembler:dis.dis(myfunction)will print (pseudo-)assembly code formyfunction. It seemsluac -ldoes that too, but on compiled Lua files (see the well-hidden link in my previous comment), so I'm not sure whether it could be used for LuaTeX. – Bruno Le Floch Feb 01 '12 at 14:39