get_exception_context
Retrieve full exception details including type, message, inner exceptions, stack frames with source locations, and local variables in a single call when the debugger stops on an exception.
Instructions
Get full exception context in one call (exception autopsy).
State: STOPPED required (stopped on exception).
Returns exception type/message, inner exception chain, stack frames with source locations, and local variables for the top N frames — all in a single response. Use this FIRST when the debugger stops on an exception.
This replaces the manual sequence of: get_exception_info → get_call_stack → get_scopes → get_variables
Args: max_frames: Maximum stack frames to return (default 10) include_variables_for_frames: Include locals for top N frames (default 1) max_inner_exceptions: Max inner exception chain depth (default 5)
Escape hatch: see the dap-escape-hatch prompt for unwrapped DAP requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_frames | No | ||
| max_inner_exceptions | No | ||
| include_variables_for_frames | No |