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: stringThe 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: stringA 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: numberThe 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: stringThe 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: numberThe number of upvalues used by the function that is currently using the stack frame/ provided function.
numparams
DebugInfo.numparams: numberThe 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: booleanIf 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.