gdb_start_session
Start a GDB debugging session for a compiled C++ executable, enabling step-by-step execution, breakpoints, and variable inspection.
Instructions
Start a GDB debugging session for a compiled C++ executable.
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": {
"executable": "<executable>"
},
"name": "gdb_start_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| executable | Yes | Path to the compiled executable (must be built with -g for debug symbols). | |
| args | No | Command-line arguments to pass to the program. | |
| working_dir | No | Working directory for the debug session. | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |