gdb_set_breakpoint
Set a breakpoint in a C++ program at a specific location or function, optionally with a condition, to pause execution during debugging.
Instructions
Set a breakpoint at a location.
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": {
"session_id": "<session_id>",
"location": "<location>"
},
"name": "gdb_set_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session identifier. | |
| location | Yes | Where to break. Accepts "file:line" (e.g. "main.cpp:42"), function name (e.g. "main"), or address. | |
| condition | No | Optional C++ condition expression (e.g. "i > 10"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |