Debug
debug.getregistry
debug.getregistry() -> tableReturns the lua registry.
debug.getupvalues
debug.getupvalues(func: function | number) -> tableReturns a list of upvalues in the given func.
debug.getupvalue
debug.getupvalue(func: function | number, index: number) -> anyReturns the upvalue at index in the given func.
debug.setupvalue
debug.setupvalue(func: function | number, index: number, value: any) -> nilSets the upvalue at the specified index in the given func or stack level to the provided value.
Last updated