Aliases
getcallstack
Arguments
thread
The coroutine whose environment, script association, or stack is inspected.
Returns
{DebugInfo}
An array of DebugInfo records for the inspected thread’s call frames.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns metadata for call frames of the current or supplied thread.
debug.getcallstack(thread: thread?): {DebugInfo}
getcallstackfor _, frame in ipairs(debug.getcallstack()) do print(frame.name, frame.currentline) end
