Inspect Runtime State
inspect_runtime_stateRetrieve live debugging snapshots including threads, call stacks, scopes, and variable values from an active DAP session to diagnose runtime issues when execution is paused.
Instructions
Retrieves the live debugging snapshot from a connected DAP session: threads, call stack, scopes, and local variables with their current values. Requires an active DAP connection (call connect_dap first). Most useful when the debuggee is stopped at a breakpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | No | The thread to inspect. Defaults to the thread that last stopped (hit a breakpoint). Use `inspect_runtime_state` once without this to see all threads. | |
| frame_index | No | The stack frame index to inspect (0 = top of stack, i.e., current frame). | |
| max_variables | No | Maximum number of variables to retrieve per scope. | |
| variable_depth | No | How many levels deep to expand nested objects/arrays. 1 = top-level only, 2 = one level of nesting, etc. |