Skip to main content

ABAP Debugger

ABAP Debugger Capability

Adri AI agents can use the SAP debugger workflow, including:

  • setting breakpoints
  • launching a debug run in the selected SAP system
  • stepping through execution (step over/step into/continue)
  • collecting runtime findings from actual execution paths

This is very useful for hard-to-trace behavior, exits, and BAdI resolution.

Full Debugger Capability Matrix

This section shows exactly what is available today.

Available now

CapabilityWhat this lets you doStatus
Launch and end debug sessionStart a debugger run on the selected SAP system and end it cleanlyWorking
Breakpoint managementAdd, remove, and sync line breakpointsWorking
Conditional breakpoint checksValidate breakpoint conditions before runningWorking
Step controlsStep over, step into, step return, continue, run to line, and jump to lineWorking
Variable inspectionView all variables at the stop pointWorking
Call stack inspectionView full stack frames while pausedWorking
Deep variable readRead full values of large variablesWorking
Runtime variable editChange variable values while pausedWorking
Expression watchWatch expressions like SY-SUBRC, SY-TABIX, and similar valuesWorking
Targeted variable fetchFetch specific variables quickly by referenceWorking

Not implemented yet

CapabilityNotes
Statement breakpointsUseful for kernel BAdI discovery; line breakpoints work today but statement-level does not
WatchpointsBreak when a variable value changes
Exception breakpointsBreak on specific ABAP exception classes
Evaluate expressionAd-hoc ABAP expression evaluation in debug context
Multiple debug sessionsSimultaneous debug sessions for the same SAP context are not supported yet

Summary

  • Core ABAP debugging workflow is fully available for day-to-day debugging tasks.
  • 5 advanced capabilities are still pending.
  • You can now cover most practical debugging flows directly from Adri AI without manual debugger switching.

Pre-requisites

  1. Complete MCP setup in Claude Code: Setup (Claude Code)
  2. Make sure your target SAP system is connected.

In these screenshots, the red box shows user action and the blue box shows important information to note.

Step-by-step (Claude Code example)

  1. In Claude Code, type /adri and select /adri-ai:sap_debugger_guide (MCP).

Select the sap_debugger_guide prompt

  1. Confirm the debugger guide is loaded. It asks for the SAP session/program context and where to place breakpoints.

Debugger guide loaded with required inputs

  1. Ask your debug objective and include where you want the breakpoint.

Submit debugger objective and breakpoint target

  1. When prompted, allow debugger launch (recommended: allow for all projects).

Approve debugger launch tool permission

  1. Review runtime results captured by the agent from debugger execution.

Captured debugger findings and runtime analysis