Debug
Constants, upvalues, stack slots, prototypes and call information.
30 functions
| Function | Summary |
|---|---|
debug.dumpcodesize | Requests the engine’s native-code size report. |
debug.dumpheap | An engine-provided diagnostic entry retained in the debug table. |
debug.dumprefs | An engine-provided diagnostic entry retained in the debug table. |
debug.getcallstackgetcallstackget_callstack | Returns metadata for visible Lua call frames. |
debug.getconstantgetconstantget_constant | Reads one constant from a Lua function or a visible caller frame. |
debug.getconstantsgetconstantsget_constants | Returns a Lua function’s constant table. |
debug.getinfogetinfoget_info | Returns a table describing a function or visible caller frame. |
debug.getmemorycategory | Reads the current thread’s memory-category tag. |
debug.getprotogetprotoget_proto | Selects the nested function prototypes declared inside a Lua function. |
debug.getprotosgetprotosget_protos | Lists the nested function prototypes declared inside a Lua function. |
debug.getstackgetstackget_stack | Reads a live Lua frame’s stack slots. |
debug.getupvaluegetupvalueget_upvalue | Reads one captured variable of a Lua closure. |
debug.getupvaluecount | Counts a function's upvalues. |
debug.getupvaluesgetupvaluesget_upvalues | Returns the captured variables of a Lua closure. |
debug.info | Returns selected function or caller metadata as separate values. |
debug.loadmodule | An engine-provided diagnostic entry retained in the debug table. |
debug.profilebegin | Begins a named MicroProfiler region. |
debug.profileend | Ends the most recently opened MicroProfiler region. |
debug.resetmemorycategory | Restores the thread’s automatically assigned memory-category tag. |
debug.setconstantsetconstantset_constant | Replaces an existing constant in a Lua function. |
debug.setinfosetinfo | Changes the name that debug.info(target, "n") reports. |
debug.setmemorycategory | Assigns the current thread’s memory-category tag. |
debug.setstacksetstackset_stack | Writes a live Lua frame’s stack slots. |
debug.setupvaluesetupvalueset_upvalue | Changes one captured variable of a Lua closure. |
debug.traceback | Formats the current call stack without throwing an error. |
debug.tracerefs | An engine-provided diagnostic entry retained in the debug table. |
error | Raises an error and stops the current call unless it is caught. |
getfunctionreferences | Finds what still refers to a function. |
getobjectreferences | Finds what still refers to a value. |
isvalidlevelvalidleveldebug.isvalidleveldebug.validlevel+2 | Checks whether a visible caller level exists. |
No function in Debug matches that filter.
