VINDICTA.TOP
Debug · Library
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

debug.getinfo

Returns debugger information about a function or stack level.

function debug.getinfo(funcfuncfunction | numberA Luau function or stack level.: function | number): DebugInfoDebugInfoTable of debug metadata fields.

Usage

Inspect a function
local function foo()
	print("Hello, world!")
end
for k, v in pairs(debug.getinfo(foo)) do
	print(k, v)
end