Skip to content

set_special_breakpoints

MCP tools › Debugger

Exception and method breakpoints of this workspace, as the Breakpoints dialog shows them: stop on caught and/or uncaught exceptions (optionally only exception_types), and on entry or exit of functions (a given list replaces the saved one). With language only that language's exception settings, else the shared ones. Omitted fields keep their saved value. Dry run by default: returns what would be saved. Used by the window's Debug action and debug_start with saved_breakpoints: true where the adapter can.

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

Capabilitydebug.set_special_breakpoints
AreaDebugger
Accesschanges files
Reaches—
Rightswrite
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
caughtbooleanStop when an exception is thrown, caught or not.
uncaughtbooleanStop when an exception is not caught.
exception_typesstringOnly for these exception types (adapter syntax); empty: any exception.
functionsarray of objectMethod or function breakpoints; replaces the saved ones when given.
functions[].namerequiredstringName in the adapter's syntax: main, Shapes::area, com.acme.Shop.total.
functions[].conditionstringExpression that must be true for the program to stop.
functions[].entrybooleanStop on entry (default true; SPEC-0146 v6).
functions[].exitbooleanStop after the method returned (default false; emulated with a step out).
functions[].enabledbooleanfalse keeps it saved but switched off (default true).
functions[].filestringWorkspace-relative file of the method's header line, for the gutter mark.
functions[].lineinteger1-based header line in file.minimum 0
exception_classesstringExceptions only where thrown in these classes (Java): patterns with *, - excludes.
fieldsarray of objectField watchpoints (SPEC-0146 v3); replaces the saved ones when given.
fields[].fieldrequiredstringThe field: pkg.Class.field or java-debug's pkg.Class$Inner#field.
fields[].accessstringwrite (default), read or readWrite.
fields[].conditionstringExpression that must be true for the program to stop.
languagestringThe language whose exception settings caught, uncaught, exception_types and exception_classes change (SPEC-0146 v6): java, python, javascript, native or go; without it the shared setting every language without its own uses.
dry_runbooleanOnly return what would be saved (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 set_special_breakpoints
Input schema as JSON
{
"type": "object",
"$defs": {
"FunctionBreakpointArg": {
"description": "A method or function breakpoint.",
"type": "object",
"properties": {
"name": {
"description": "Name in the adapter's syntax: `main`, `Shapes::area`, `com.acme.Shop.total`.",
"type": "string"
},
"condition": {
"description": "Expression that must be true for the program to stop.",
"type": [
"string",
"null"
]
},
"entry": {
"description": "Stop on entry (default true; SPEC-0146 v6).",
"type": [
"boolean",
"null"
]
},
"exit": {
"description": "Stop after the method returned (default false; emulated with a step out).",
"type": [
"boolean",
"null"
]
},
"enabled": {
"description": "false keeps it saved but switched off (default true).",
"type": [
"boolean",
"null"
]
},
"file": {
"description": "Workspace-relative file of the method's header line, for the gutter mark.",
"type": [
"string",
"null"
]
},
"line": {
"description": "1-based header line in `file`.",
"type": [
"integer",
"null"
],
"minimum": 0
}
},
"required": [
"name"
]
},
"FieldWatchpointArg": {
"description": "A field watchpoint.",
"type": "object",
"properties": {
"field": {
"description": "The field: `pkg.Class.field` or java-debug's `pkg.Class$Inner#field`.",
"type": "string"
},
"access": {
"description": "`write` (default), `read` or `readWrite`.",
"type": [
"string",
"null"
]
},
"condition": {
"description": "Expression that must be true for the program to stop.",
"type": [
"string",
"null"
]
}
},
"required": [
"field"
]
}
},
"properties": {
"caught": {
"description": "Stop when an exception is thrown, caught or not.",
"type": [
"boolean",
"null"
]
},
"uncaught": {
"description": "Stop when an exception is not caught.",
"type": [
"boolean",
"null"
]
},
"exception_types": {
"description": "Only for these exception types (adapter syntax); empty: any exception.",
"type": [
"string",
"null"
]
},
"functions": {
"description": "Method or function breakpoints; replaces the saved ones when given.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/FunctionBreakpointArg"
}
},
"exception_classes": {
"description": "Exceptions only where thrown in these classes (Java): patterns with `*`, `-` excludes.",
"type": [
"string",
"null"
]
},
"fields": {
"description": "Field watchpoints (SPEC-0146 v3); replaces the saved ones when given.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/FieldWatchpointArg"
}
},
"language": {
"description": "The language whose exception settings `caught`, `uncaught`, `exception_types` and\n`exception_classes` change (SPEC-0146 v6): `java`, `python`, `javascript`, `native` or\n`go`; without it the shared setting every language without its own uses.",
"type": [
"string",
"null"
]
},
"dry_run": {
"description": "Only return what would be saved (default true).",
"type": [
"boolean",
"null"
]
}
}
}