Zum Hauptinhalt springen

Aliase

  • debug.getstack

Argumente

number
erforderlich
Stack level number converted to an integer. Must be in range 0 <= level < current call stack depth.
number
Optional one-based stack slot index. It is used only when the second argument is a number.

Rückgaben

table | any
A one-based table of stack slot values when index is omitted or not numeric, or the single stack slot value when index is numeric.

Beispiel

Read stack slot values from a Lua stack frame.