Detach ABAP Debugger Session
sap_debug_detachEnds an active SAP debug session, releases the paused user, clears breakpoints, and removes listener registrations to leave no trace.
Instructions
End a debug session and leave nothing behind on SAP. ALWAYS call this when done — a frozen debuggee is a real user session that cannot continue, and an armed listener keeps trapping that user's execution.
Cleanup, in order, each step best-effort and reported individually:
clear the breakpoints this server set (empty full-set sync);
release the frozen debuggee ('continue'; if that fails for any reason other than the program having ended, drop its ABAP session to force the release);
log the stateful debug connection off;
delete the listener registration;
verify — re-check the scope and confirm nothing remains.
Args:
session_id (string).
response_format.
Returns (json): { sessionId, breakpointsCleared, debuggeeReleased, listenerDeleted, verified, message }. verified=false means the check could not confirm the listener is gone: call again.
Idempotent — safe to call twice, and safe to call on a session that already ended.
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 |