debug
The debug library. Alongside Luau's own traceback and info, executors extend it to read and rewrite the constants, upvalues, protos and stack of any function.
Signature
debugReturns
Nothing.
Example
-- the standard Luau functions keep working
print(debug.traceback("here"))
-- and the executor adds the ones that read and write closures
local function f()
return "value"
end
print(debug.getconstant(f, 1)) --> value