DiagnosticsOverviewNew · 0.744
getstackframe
Describe a frame in the current runtime call stack.
Details#
Returns frame metadata for the specified level, defaulting to 1, or nil when the level is unavailable. Fields include source, short_src, what, name, currentline, linedefined and level.
Examples#
Example
local frame = getstackframe(1)
if frame then print(frame.name, frame.currentline) end