gdb_print
Print values of expressions during debugging sessions using the GDB interface. Evaluate variables or expressions in real-time to analyze and debug code efficiently.
Instructions
Print value of expression
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": {
"sessionId": "<sessionId>",
"expression": "<expression>"
},
"name": "gdb_print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Expression to evaluate | |
| sessionId | Yes | GDB session ID |