debug_watchpoint
Set, clear, or list hardware data watchpoints on STM32 variables or addresses to catch reads, writes, or value matches during debugging.
Instructions
Manage data watchpoints (DWT comparators — usually only a few per MCU).
Args: session_id: Session ID from debug_session_start. action: "set", "clear", "clear_all", or "list" (default). location: Variable name (ELF) or hex address — required for set/clear. width: Access size in bytes: 1, 2, or 4 (default 4). access: "r", "w", or "rw" (either direction, default). value: If set (e.g. "5"), break only when the watched value matches.
Returns: Watchpoint list after the operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| width | No | ||
| access | No | rw | |
| action | No | list | |
| location | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |