Debug This Crash
debug_this_crashDiagnose native crashes by inspecting live or dumped debugger state, launching authorized DAP adapters, and verifying fixes through a bounded autonomous workflow.
Instructions
Preferred high-level native crash workflow. Use mode=current for an already stopped session, dump for read-only postmortem analysis, codelldb to discover CodeLLDB and launch a local binary, lldb-dap to discover upstream LLVM lldb-dap and launch a local binary, or live with an already initialized generic DAP adapter. Do not use codelldb/lldb-dap/live when executing or attaching to the target is not authorized: those modes can run application code and cause its normal side effects, while current/dump only inspect stopped evidence. workflow.stage selects initial diagnosis, verification against a prior baseline, or the bounded autonomous cycle. Returns runtime evidence, diagnosis, verification/autonomous metadata, and debugger status with deterministic fixed/blocked/budget-exhausted outcomes where applicable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the selected debugger/target launch and a project-root hint for diagnosis. | |
| env | No | Environment variables supplied to the launched program in mode=codelldb or mode=lldb-dap. | |
| args | No | Command-line arguments passed to the launched program in mode=codelldb or mode=lldb-dap. | |
| mode | No | current inspects an existing stop; live runs launch/attach through an initialized DAP session; codelldb starts CodeLLDB; lldb-dap starts upstream LLVM lldb-dap; dump opens a frozen core/minidump. | current |
| program | No | Required for mode=codelldb and mode=lldb-dap; optional for CodeLLDB dumps but required when dumpAdapter=lldb-dap. Local path to the native executable. | |
| request | No | For mode=live, choose whether the initialized DAP adapter launches a target or attaches to an existing authorized target. | launch |
| analysis | No | Hints used to distinguish project code from runtime, system, or third-party frames. | |
| dumpPath | No | Required for mode=dump: local path to the native core/minidump file. | |
| snapshot | No | Bounds and optional evidence categories for a runtime crash snapshot. | |
| workflow | No | Controls one-shot diagnosis, explicit verification, or the bounded autonomous crash workflow. | |
| sourceMap | No | For mode=dump, map source paths stored in debug symbols to local source paths. | |
| timeoutMs | No | Maximum milliseconds to wait for the reproduction to stop, exit, or terminate. | |
| adapterPath | No | Optional explicit debugger-adapter executable path for codelldb/lldb-dap/dump modes; omit to auto-discover the selected adapter. | |
| breakpoints | No | Optional source breakpoints configured before a live/codelldb reproduction completes setup. | |
| dumpAdapter | No | For mode=dump, choose CodeLLDB compatibility behavior or upstream LLVM lldb-dap coreFile loading. | codelldb |
| stopOnEntry | No | When true in mode=codelldb or mode=lldb-dap, request an initial debugger stop at program entry before normal execution. | |
| configuration | No | Required for mode=live: adapter-specific DAP launch/attach configuration. | |
| requestTimeoutMs | No | Per-request DAP timeout in milliseconds for CodeLLDB operations. |