<table> debug.getconstants(<function> f)
- Returns the constants in function for at levelf.
<variant> debug.getconstant(<function> f, <int> idx)
- Returns the constant at index idxin functionfor levelf.
<void> debug.setconstant(<function> f, <int> idx, union<number, bool, string> value)
- Set constant idxto tuplevalueat level or functionf.
<table> debug.getupvalues(<function> f)
- Retrieve the upvalues in function for at levelf.
<variant> debug.getupvalue(union<function, number> f, <number> idx)
- Returns the upvalue with name idxin function or levelf.
<void> debug.setupvalue(<function> f, <int> idx, <table> value)
- Set upvalue idxtovalueat level or functionf.
<table, function> debug.getproto(<function> f, <int> idx, <bool?> activated)
- Gets the inner functionoffatindex.
<void> debug.setproto(<function> fi, <number> index, <function> replacement)
- Replaces fiatindexwith functionreplacementat level or functionfi.
<table> debug.getstack(<function> f, <int> idx)
- Gets the method stack at level or function f.
<void> debug.setstack(<function> f, <int> idx, <table> value)
- Sets the stack indice at indicetovalueat level or functionf.
<table> debug.setmetatable(<table> o, <table> mt)  
- Set the metatable of otomt.
<table> debug.getregistry(<void>)
- Returns the Lua registry.
<table> debug.getinfo(<function> f)
- Returns a table of information about function f.
| Name | Type | Description | 
|---|
| name | String | The name of the function. | 
| short_src | String | A shorter version of source. | 
| what | String | What the function is: Lua = Lua function - C = C function | 
| currentline | Integer | The line that is currently active. | 
| nups | Integer | The number of upvalues that the function has. | 
| func | Function | The function that is active. | 
| source | String | Where the function was defined. |