ABAP Debug Variable
abap_debug_variableRead current values of named ABAP variables in a stopped debug session, returning each as NAME (type) = value so you can inspect runtime state at a breakpoint.
Instructions
Read the current values of named variables in the stopped debuggee, one line each as NAME (type) = value. Use abap_debug_stack first to see which frame you are in, and abap_debug_set_variable to change a value. Read-only; needs an active session stopped at a breakpoint (abap_debug_session with action listen).
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": {
"variables": "<variables>"
},
"name": "abap_debug_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables | Yes | Variable names as written in the source, visible in the current frame (e.g. ['LV_COUNT', 'WA_MARA', 'IT_TABLE']) | |
| connectionId | No | SAP system connection ID |