Get ABAP Debugger State
sap_debug_stateRetrieve the current state of an ABAP debug session and get a fresh call stack whenever the debuggee is stopped. Distinguish listening, stopped, running, and ended sessions.
Instructions
Report the state of a debug session, plus a fresh call stack when a debuggee is stopped.
Args:
session_id (string).
response_format.
Returns (json): { sessionId, state, program?, include?, line?, stack: [{index, program, include?, line?, name?}], debuggee?, reachedBreakpoints? }. States: LISTENING (armed, nothing trapped yet) · STOPPED (debuggee frozen) · RUNNING (a step has not come back yet) · TIMEOUT / CANCELLED / ENDED / DETACHED. Only STOPPED calls SAP; the other states are answered from this server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID from sap_debug_attach. | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |