DebugInfo
Contains information about the function that is currently using the given stack frame or of a given function.
Properties
func
DebugInfo.func:
(
T...
)
→
U...
The function that is currently using the stack frame/ provided function.
source
DebugInfo.source:
string
The chunkName of the function that is currently using the stack frame/ provided function.
WARNING
This property only holds useful information if the function is a Luau function, else it will contain =[C]
.
short_src
DebugInfo.short_src:
string
A shortened version of the chunkName of the function that is currently using the stack frame/ provided function.
WARNING
This property only holds useful information if the function is a Luau function, else it will contain [C]
.
currentline
DebugInfo.currentline:
number
The current line number of the function that is currently using the stack frame/ provided function.
WARNING
This property only holds useful information if the function is a Luau function, else it will contain -1
.
name
DebugInfo.name:
string
The debugname of the function that is currently using the stack frame/ provided function is at.
what
DebugInfo.what:
"Lua"
|
"C"
The debugname of the function that is currently using the stack frame/ provided function is at.
Usage
If your executor somehow messed up on islclosure
or iscclosure
, you can use this field to check the type of function you have.
nups
DebugInfo.nups:
number
The number of upvalues used by the function that is currently using the stack frame/ provided function.
numparams
DebugInfo.numparams:
number
The number of parameters used by the function that is currently using the stack frame/ provided function.
WARNING
This property only holds useful information if the function is a Luau function, else it will contain 0
.
is_vararg
DebugInfo.is_vararg:
boolean
If the function that is currently using the stack frame/ provided function is a vararg function.
WARNING
This property only holds useful information if the function is a Luau function, else it will contain true
.