Show TOC

ABAP Debugging in ADTLocate this document in the navigation structure

The Debug perspective allows you to manage the debugging of ABAP development objects.

When ABAP encounters an active breakpoint, ABAP Development Tools (ADT) opens the Debug perspective in the IDE. Depending on how you have adjusted the IDE, the Debug perspective may automatically start, or you may be asked to confirm the start.

This section gives you a quick orientation to the Debug perspective, so that you know what you are seeing.

  • The navigation toolbar on top of the Debug perspective lets you control execution in the debugger, stepping through your code, resuming or canceling execution.

    The Debug view also shows you the active call stack. You can click on entries in the call stack to open the code at that level of the stack. You can then inspect active variables, set breakpoints, or edit your code.

  • Variables and Breakpoints on different tabs.

    A double-click on a variable in the source code editor shows you the value and attributes of the variable in the Variables view.

    In the Breakpoints view, you can see the list of active and inactive breakpoints.

    Double-click on a breakpoint to jump to its locations in the source code. Mark or unmark a breakpoint to activate or deactivate it. Any such changes are effective immediately in the current debugging session.

  • The editor showig the code that you are debugging. You can follow debugger execution in the code, show the values of variables by hovering with the cursor over them, or open them in the Variables view by clicking on them.

    You can correct mistakes in your coding directly in the editor; there's no need to switch to the ABAP perspective to edit your code.

    Tip It is recommended to restart the debug session after activating changes in the currently executed code. To do so, terminate or disconnect the debugger and then restart your program.

  • The ABAP Internal Table view opens at the bottom of the Debug perspective. Double-clicking on an internal table opens the table not only in the Variables view but also in the ABAP Internal Table view. You can type an internal table name directly into the view or find a table in the code that you are debugging.

    The ABAP Internal Table view offers you some of the same comfort as the Internal Tables tool of the ABAP Debugger in SAP GUI. Here and there, you can see and change the content of the internal table, re-arrange table columns for better display using drag-and-drop, and so on.