exception_autopsy
Retrieve complete exception details including type, inner exceptions, stack frames, locals, source code, and debuggee output in one call. Use when debugger stops on an exception.
Instructions
Full exception context in one call: exception type + inner-exception chain + top stack frames + top frame's locals + source snippet around the throw + a peek of recent debuggee stdout/stderr (non-destructive — process_read_output still drains the full buffer). Call this when state.lastStop.reason == "exception".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No | Thread id. Defaults to the last-stopped thread. | |
| frameCount | No | How many top stack frames to include. Default 20. | |
| maxRecentOutputLines | No | Cap on recent debuggee output lines included with the autopsy (peeked, not drained). Default 50. Pass 0 to omit output. |