Debug
<table> debug.getconstants(<function, number> a1)
Returns a table of the constants in a1 or the level a1.
<table> debug.getconstants(<function, number> a1, <int> idx)
Returns the constant at idx of a1 or the level a1.
<table> debug.setconstants(<function, number> a1, <int> idx, <?> to)
Sets the constant value at idx from a1 to the third argument.
<table> debug.getupvalues(<function, number> a1)
Returns a table of the upvalues in a1 or the level a1.
<table> debug.getupvalue(<function, number> a1, <int> idx)
Returns the upvalue at idx of a1 or the level a1.
<table> debug.setupvalue(<function, number> a1, <int> idx, <?> to)
Sets the upvalue value at idx from a1 to the third argument.
<table> debug.getprotos(<function, number> a1)
Returns a table of the protos in a1 or the level a1.
<table> debug.getproto(<function, number> a1, <int> idx)
Returns the proto at idx of a1 or the level a1.
<table> debug.setproto(<function, number> a1, <int> idx, <function> to)
Sets the proto value at idx from a1 to the third argument.
<table> debug.getregistry(<void>)
Alias of getreg
<bool> debug.isvalidlevel(<int> a1)
Returns true if a1 is a valid level, false otherwise.
<table> debug.setmetatable(<table> a1, <table> a2)
Sets the metatable of a1 to a2.
<table> debug.getinfo(<function, number> a1)
Returns a table of info of the function or level a1.
Last updated
Was this helpful?