debug.debug()
enters interactive debugging
debug.getfenv()
returns the environment of an object
debug.gethook()
returns the current hook settings
debug.getinfo()
returns a table with information about a function
debug.getlocal()
returns name and value of a local variable
debug.getmetatable()
returns the metatable of the given object
debug.getregistry()
returns the registry table
debug.getupvalue()
returns the name and value of an upvalue
debug.setfenv()
sets the environment of an object
debug.sethook()
sets a debug hook function
debug.setlocal()
sets the value of the local variable
debug.setmetatable()
sets the metatable for an object
debug.setupvalue()
sets an upvalue for a function
debug.traceback()
returns a string with a traceback of the stack call