Skip to content

debug_breakpoints

MCP tools › Debugger

The line breakpoints of a debug session, and changing them while it goes on — stopped or running: with path and breakpoints the file's line breakpoints are replaced by that list (line, condition, hit_condition, log_message, enabled; an empty list removes them all), as the Breakpoints dialog does for a running session; the saved breakpoints of the workspace stay as they are. Returns every file's breakpoints as the debug adapter has them now (verified, line it moved them to, requested_line, reason), the ones still not bound with Ferris IDEA's hint, and the debug console. Without breakpoints it only lists. Needs the debug right.

Its results carry text from files: the client is told to treat that as data, never as instructions.

Capabilitydebug.debug_breakpoints
AreaDebugger
Accesschanges ide, processes
Reaches—
Rightsdebug
Dry runnone

Arguments

ArgumentTypeDescription
sessionrequiredintegerSession id.minimum 0
pathstringWorkspace-relative source file whose line breakpoints are replaced; omitted: only list.
breakpointsarray of objectThe file's line breakpoints from now on (empty: none). Needs path.
breakpoints[].linerequiredinteger1-based line.minimum 0
breakpoints[].conditionstringStop only when this expression is true.
breakpoints[].hit_conditionstringStop only on this hit count (adapter syntax, e.g. 3 or >= 3).
breakpoints[].log_messagestringLog this message ({expr} interpolated) instead of stopping.
breakpoints[].enabledbooleanfalse keeps the breakpoint out of the session, like a switched-off one (default true).

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.

Terminal window
ferris-idea call ~/my-project debug_breakpoints '{"session":1}'
Input schema as JSON
{
"properties": {
"session": {
"description": "Session id.",
"type": "integer",
"minimum": 0
},
"path": {
"description": "Workspace-relative source file whose line breakpoints are replaced; omitted: only list.",
"type": [
"string",
"null"
]
},
"breakpoints": {
"description": "The file's line breakpoints from now on (empty: none). Needs `path`.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/DebugLineBreakpointArg"
}
}
},
"$defs": {
"DebugLineBreakpointArg": {
"description": "A line breakpoint of `debug_breakpoints`.",
"type": "object",
"properties": {
"line": {
"description": "1-based line.",
"type": "integer",
"minimum": 0
},
"condition": {
"description": "Stop only when this expression is true.",
"type": [
"string",
"null"
]
},
"hit_condition": {
"description": "Stop only on this hit count (adapter syntax, e.g. `3` or `>= 3`).",
"type": [
"string",
"null"
]
},
"log_message": {
"description": "Log this message (`{expr}` interpolated) instead of stopping.",
"type": [
"string",
"null"
]
},
"enabled": {
"description": "false keeps the breakpoint out of the session, like a switched-off one (default true).",
"type": [
"boolean",
"null"
]
}
},
"required": [
"line"
]
}
},
"required": [
"session"
],
"type": "object"
}