sUNC Reference
Debug
Inspect and modify constants, upvalues, stacks and prototypes.
Related to sUNC documentation
This reference is based exclusively on the official sUNC documentation.
Overview
- Debug APIs operate on Luau functions or active stack levels.
- Setter functions mutate live runtime values.
Available functions
debug.getconstantRetrieves one constant from a function or stack level.debug.getconstantsRetrieves all bytecode constants from a function or stack level.debug.getprotoRetrieves one nested prototype.debug.getprotosRetrieves all nested function prototypes.debug.getstackReads values from an active stack frame.debug.getupvalueRetrieves one captured upvalue.debug.getupvaluesRetrieves all captured upvalues.debug.setconstantReplaces one bytecode constant.debug.setstackReplaces one value in an active stack frame.debug.setupvalueReplaces one indexed function upvalue.