Expand description
Debug library — Rust port of ldblib.c.
Provides the debug Lua standard library module. Exposes debug
introspection APIs: stack inspection (getinfo, getlocal), upvalue
access (getupvalue, setupvalue, upvaluejoin), hook management
(sethook, gethook), metatable overrides (getmetatable,
setmetatable), userdata values (getuservalue, setuservalue),
and utility functions (traceback, debug, setcstacklimit).
C source: reference/lua-5.4.7/src/ldblib.c (484 lines, 20 functions)
Functions§
- open_
debug - Open the
debuglibrary and push the module table onto the stack. Returns 1 (the table).