Available functions
debug.getcallstack
Returns metadata for call frames of the current or supplied thread.
debug.getconstant
Returns a constant slot from a Lua prototype.
debug.getconstants
Returns a Lua prototype’s constants by 1-based slot.
debug.getinfo
Returns function/frame metadata and the function itself.
debug.getmetatable
Returns a raw metatable bypassing protection.
debug.getproto
Returns a cloned nested prototype closure, or live matching closures when active is true.
debug.getprotos
Lists nested prototypes in a Lua function.
debug.getregistry
Returns the live VM registry.
debug.getstack
Reads a visible Lua frame’s register slot or all slots.
debug.getupvalue
Returns one captured upvalue by 1-based index.
debug.getupvalues
Returns a 1-based table of upvalue values.
debug.setconstant
Changes a constant while preserving its native type.
debug.setinfo
Updates selected function/frame metadata.
debug.setmetatable
Sets/removes the raw metatable.
debug.setstack
Writes a register slot in a visible Lua frame.
debug.setstackhidden
Adds/removes a closure from Byte’s traceback-hidden set.
debug.setupvalue
Replaces one upvalue in a Lua closure.
debug.validlevel
Checks whether a numeric level is within the thread’s native frame count.
traceback
Builds a Byte-formatted traceback of the current thread.
