Capture Runtime Debug Snapshot
debug_snapshotCapture bounded evidence from the currently stopped debug state without resuming execution. Retrieve stack, locals, registers, exception details, modules, and nearby instructions for raw inspection.
Instructions
Capture bounded evidence from the current stopped debug state without resuming execution. Use this when an agent needs raw stack, locals, registers, exception details, modules, or nearby instructions; prefer debug_diagnose_stop when you also want ranked crash hypotheses and project-frame selection. This is read-only with respect to the debuggee and returns best-effort evidence plus collection errors for optional data that an adapter cannot provide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No | Stopped DAP thread to inspect; omit to use the session-selected stopped thread. | |
| moduleCount | No | Maximum loaded modules to return when includeModules is true. | |
| stackLevels | No | Maximum number of stack frames to include, from the selected thread top downward. | |
| includeModules | No | Include a bounded list of loaded executable images and libraries. | |
| disassembleAfter | No | Number of instructions after the current instruction to request when disassembly is enabled. | |
| disassembleBefore | No | Number of instructions before the current instruction to request when disassembly is enabled. | |
| includeDisassembly | No | Include best-effort instructions around the selected frame instruction pointer when supported. | |
| includeExceptionInfo | No | Include structured exception information for the stopped thread when the adapter supports it. | |
| maxVariablesPerScope | No | Maximum variables returned per inspected scope, bounding output size. |