Trace Runtime Causality
debug_causal_traceTrace runtime producers of a suspicious debugger value by combining stopped-snapshot inspection with watchpoint writer tracing into a bounded causal evidence chain.
Instructions
Build a bounded consumer-to-writer evidence chain for one suspicious debugger-visible value. Use it after crash or differential evidence identifies a value whose runtime producers matter. It combines the current stopped snapshot with repeated watchpoint writer tracing. Do not use it for frozen dumps or unsafe-to-resume targets, and do not treat an observed writer as automatic proof of root cause.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Debugger-visible variable or expression whose producer chain should be traced. | |
| maxDepth | No | Maximum number of confirmed writer events promoted into the causal producer chain. | |
| maxStops | No | Maximum watchpoint stops available to the underlying bounded temporal trace. | |
| sessionId | No | Optional DAP session ID. Omit to use the backward-compatible default session. | |
| timeoutMs | No | Aggregate deadline for the entire causal trace operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| trace | Yes | ||
| consumer | Yes | ||
| conclusion | Yes | ||
| limitations | Yes | ||
| producerChain | Yes |