abap_debug
Drive ABAP debugging: arm breakpoints, run programs, step through code, inspect the stack, and change variable values on a live SAP system.
Instructions
ABAP debugger driver: arm breakpoints, run a program, step, inspect the stack. One session at a time; frames observe-only. set_value changes a simple variable at a stop (edit/admin mode).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | action="breakpoints"/"watch" op="remove" only — the id to remove. | |
| op | No | action="breakpoints"/"watch" only. breakpoints defaults to "list"; watch defaults to "add" when "variable" is set, else "list". | |
| run | No | The program to trigger (action="start"). | |
| step | No | continue may end the session (status="dead" plus captured output). runToLine/jumpToLine need toLine; jumpToLine also needs server ABAP_ALLOW_DEBUG_JUMP_TO_LINE=true and confirm:"jumpToLine". | |
| force | No | stop only — force-terminates a debuggee left attached by an unclean exit (the "Debuggee already attached" error's escape hatch). | |
| frame | No | 1-based stackPosition from the last STACK section. Read-only. | |
| value | No | action="set_value" only — the new value as text; empty string allowed. | |
| action | Yes | start needs breakpoints+run. step needs stateId+step. stack needs stateId. frame needs stateId+frame. breakpoints needs stateId (op add/remove) or nothing (op list, default). watch needs stateId+variable (op add, default when variable given) or stateId+id (op remove) or stateId (op list). set_value needs stateId+variable+value and changes a simple variable at a stop (edit/admin mode only). keepalive/stop/status need nothing. | |
| toLine | No | Required for step="runToLine"/"jumpToLine". 1-based line in the current frame's source. | |
| confirm | No | Required for step="jumpToLine": echo "jumpToLine". Ignored otherwise. | |
| stateId | No | From the most recent start/step/stack/frame response (12-char token; the full id or a prefix of at least 8 chars is accepted too); a stale id is refused. | |
| variable | No | action="watch" — variable path to watch, same syntax abap_debug_value accepts. Presence selects op="add". action="set_value" — the variable path to change, same syntax as abap_debug_value's path. | |
| condition | No | action="watch" op="add" only — ABAP expression; the watchpoint only suspends when it evaluates true. | |
| breakpoints | No | ≥1 entry, required for action="start" and for action="breakpoints" op="add"; kinds (line/exception/statement/message) may mix and are validated against SAP before arming; condition and skipCount are optional on every kind, skipCount sent to SAP but NOT enforced. |