Hacker News new | ask | show | jobs
by fanf2 2071 days ago
Lua exposes much less of its internals than Python. For example the comment you replied to mentioned stack frames which are not exposed in Lua.
1 comments

Those are exposed via the built-in debug library, including in luajit.
Oh whoops yes :-)

Note that you can only look up variables by their bytecode register number, not by name.

IIRC that uses the Lua C API which LuaJIT supports by fully restoring the interpreter state?