Trace Runtime Value Writes
debug_trace_valueResume a live debugger to each confirmed writer of a suspicious variable found in crash evidence, capture bounded runtime evidence, and remove the temporary watchpoint at every stop.
Instructions
Build a bounded temporal write timeline for one debugger-visible variable or expression. Use this after differential or crash evidence identifies a suspicious value and repeated live-target resume is safe. The tool installs one temporary data breakpoint or watchpoint at a time, resumes to the next confirmed writer, captures bounded runtime evidence, removes only its own temporary watch, and repeats. Do not use it for crash dumps, unsafe-to-resume targets, or as proof that an observed writer is the root cause; it stops on unrelated debugger events rather than continuing through them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Debugger-visible variable or expression to watch. Control characters and line breaks are rejected by the GDB fallback. | |
| maxStops | No | Maximum confirmed or unrelated writer-stop observations before the trace ends. | |
| snapshot | No | Optional bounded evidence settings for each observed writer stop. | |
| threadId | No | Initial stopped thread; omit to use the debugger-selected stopped thread. Writer snapshots follow the actual stopped event thread. | |
| sessionId | No | Optional DAP session ID. Omit to use the backward-compatible default session. | |
| timeoutMs | No | Aggregate operation deadline across the entire write timeline. | |
| accessType | No | Watch writes only by default; readWrite may be used when read access is also relevant. | write |
| perStopTimeoutMs | No | Maximum bounded wait allocated to each individual writer observation, also capped by the aggregate deadline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| events | Yes | ||
| status | Yes | ||
| guidance | Yes | ||
| stopReason | Yes | ||
| finalSnapshot | Yes | ||
| terminalError | No |