debug_stack_trace
Retrieve the call stack where execution is paused, showing function name, file, and line number, along with the reason execution stopped.
Instructions
Get the call stack where execution is currently paused. Returns: frames with function name, file and ZERO-BASED line, plus why it stopped. An empty frame list means execution is not paused - frames exist only while stopped at a breakpoint or a runtime error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | No | Thread id (default 1) |