debug_with_gdb
Debug C++ source code with GDB by submitting code and an optional GDB script, helping you inspect execution and diagnose program issues.
Instructions
使用GDB调试C++程序
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": {
"code": "<code>"
},
"name": "debug_with_gdb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | C++源代码 | |
| gdb_script | No | GDB调试脚本(可选) |