Debug

debug.getcallstack

Returns a table of the entire stack's information. Table array fields: source (definition), line (start line), what (\"Lua\", \"C\"), name, func.

Syntax

debug.getcallstack(offset: number): table

Also available as getcallstack