add_function_breakpoint
Set a breakpoint on a function by name to pause when entered, useful when you know the method but not the line number. Optionally filter by condition or hit count.
Instructions
Set a breakpoint on a function by name.
Breaks when the named function is entered. This is useful when you know the method name but not the exact line number.
Escape hatch: see the dap-escape-hatch prompt for unwrapped DAP requests.
Persists across restart cycles. Remove via remove_function_breakpoint or clear via clear_breakpoints (no file arg).
Args: function_name: Full or partial function name to break on condition: Optional condition expression hit_condition: Optional hit count condition
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"function_name": "<function_name>"
},
"name": "add_function_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | No | ||
| function_name | Yes | ||
| hit_condition | No |