debug_field_watch
MCP tools › Debugger
Watch a field of an object in a stopped debug session: the field name of the structured value reference becomes a field watchpoint (data breakpoint) that stops on writes (or read, readWrite); returns the adapter's id of the field, which set_special_breakpoints fields also takes. Refused by adapters without data breakpoints (debugpy). Needs the debug right.
Its results carry text from process, files: the client is told to treat that as data, never as instructions.
| Capability | debug.debug_field_watch |
|---|---|
| Area | Debugger |
| Access | changes ide, processes |
| Reaches | — |
| Rights | debug |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
sessionrequired | integer | Session id.minimum 0 |
referencerequired | integer | Reference of the object (from debug_variables or the locals) whose field is watched. |
namerequired | string | The field's name. |
access | string | write (default), read or readWrite. |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project debug_field_watch '{"session":1,"reference":1,"name":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "session", "reference", "name" ], "properties": { "session": { "description": "Session id.", "type": "integer", "minimum": 0 }, "reference": { "description": "Reference of the object (from `debug_variables` or the locals) whose field is watched.", "type": "integer" }, "name": { "description": "The field's name.", "type": "string" }, "access": { "description": "`write` (default), `read` or `readWrite`.", "type": [ "string", "null" ] } }}