14.7. Stack Trace
Prev | Chapter 14. Lua Debugger | Next

## 14.7. Stack Trace

The Stack Trace panel lists the Lua call stack at the pause point, innermost frame first. Each row has two columns:

- Function — the function’s name, or a fallback like `(main chunk)` or `(anonymous)` when no name is available. C frames in the stack are shown for context.
- Location — `source:line` for the currently-executing line of that frame.

Selecting a row changes which frame provides Locals and Upvalues in the Variables tree. Globals are not affected. Double-clicking a Lua frame opens (or switches to) its source file and jumps to the current line. C frames cannot be opened.

A right-click context menu on a stack row offers Open Source (same as double-click; disabled on C frames) and Copy Location (copies `source:line` to the clipboard).

See Section 14.5.1, “Changed-value cue” for how the Stack Trace interacts with the changed-value cue.

Prev | Up | Next
14.6. Watch | Home | 14.8. Breakpoints