Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
fanf2
5y ago
0 comments
Share
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.
undefined | Better HN
0 comments
default
newest
oldest
anonymoushn
5y ago
Those are exposed via the built-in debug library, including in luajit.
fanf2
OP
5y ago
Oh whoops yes :-)
Note that you can only look up variables by their bytecode register number, not by name.
jashmatthews
5y ago
IIRC that uses the Lua C API which LuaJIT supports by fully restoring the interpreter state?
j
/
k
navigate · click thread line to collapse