evaluate_expression
Evaluate a code expression in the current debugging session to inspect variables and objects when execution is paused at a breakpoint.
Instructions
Evaluate an expression in the current debug context.
State: STOPPED required.
Escape hatch: see the dap-escape-hatch prompt for unwrapped DAP requests.
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": {
"expression": "<expression>"
},
"name": "evaluate_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame_id | No | ||
| expression | Yes |