Diagnose Current Debug Stop
debug_diagnose_stopDiagnose a stopped debug session read-only to classify crashes, inspect frames, registers, and variables, and return ranked root-cause hypotheses with a fix and verification plan.
Instructions
Diagnose an already stopped live or postmortem debug session without changing execution state. Use this when a debugger has captured the failure and you want project-frame selection, crash classification, operand/register/variable bindings, call-chain provenance, ranked hypotheses, and a fix/rebuild/reproduce/verify plan; use debug_snapshot instead when only raw evidence is needed. The tool is read-only and returns both the bounded snapshot and the derived diagnosis, including collection limitations when optional debugger evidence is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| analysis | No | Hints used to distinguish project code from runtime, system, or third-party frames. | |
| threadId | No | Stopped DAP thread to inspect; omit to use the session-selected stopped thread. | |
| sessionId | No | Optional DAP session ID. Omit to use the backward-compatible default session. | |
| moduleCount | No | Maximum loaded modules to include when module collection is enabled. | |
| stackLevels | No | Maximum number of stack frames to inspect when collecting crash evidence. | |
| includeModules | No | Include a bounded list of loaded executable images and libraries. | |
| disassembleAfter | No | Number of instructions after the selected instruction to request. | |
| disassembleBefore | No | Number of instructions before the selected instruction to request. | |
| includeDisassembly | No | Include best-effort disassembly around the selected instruction pointer when supported. | |
| includeExceptionInfo | No | Request structured exception information for the stopped thread when supported. | |
| maxVariablesPerScope | No | Maximum variables returned per inspected scope, bounding evidence size. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot | Yes | ||
| diagnosis | Yes |