
You use this function to execute the source code in debugging mode. There are different ways to step through the source code and to navigate to different parts of it.
Execution Functions
If Layer Aware Debugging is activated then some execution functions have a different effect. For more information, see Using Object Sets and Profiles in the ABAP Debugger.
In the New Debugger, the next line to be executed is indicated by the
icon.
The
icon indicates that the current statement is not executed, but the next step will leave the current event.
The execution of the source code can be done in the following ways:
Single step
The program is executed in steps line-by-line and in procedures.
To use it, choose
with the quick info text
Single Step.
When you choose Single Step and you are at a CASE statement, the system branches to the corresponding WHEN block automatically.
Execute
The program is executed line-by-line. The procedures are processed in a single step.
To use it, choose
with the quick info text Execute.
Return
The program is executed to the point where the control is passed back to the caller of the current procedure.
To use it, choose
with the quick info text
Return.
Continue
The program is executed up to the next breakpoint. If there are no more breakpoints in the program, the system executes the rest of the program directly.
To use it, choose
with the quick info text
Continue.
Goto Statement
The execution time is set to the statement where you have placed the cursor. This can be either following or preceding the currently executed statement.
To use it, place the cursor on a statement and choose .
Continue to Cursor
This option executes the program to the line where you have placed the cursor. The function does not work if the cursor is placed on a line preceding the currently executed statement.
To use it, place the cursor on a line and choose .
Navigation Functions
Position on Current Statement
This function displays the currently processed statement and positions it in the middle of the Source Code display.
To use it, open the context menu and choose Position on Current Statement.
Go To Line
This function allows you to navigate to any line without executing it.
To use it, open the context menu, choose
, and enter the line number. The system displays the selected line, indicates it by
with the quick info text Position line, and positions it in the middle of the Source Code display. You can perform this an unlimited number of times and then navigate forward and backward through your steps by using the following functions:
Navigate Backward
Open the context menu and choose .
Navigate Forward
Open the context menu and choose .
Bookmarks
You can use bookmarks to facilitate your navigation to specific parts of the source code.
You can set bookmarks for all rows in the source text apart from comment rows. It is possible to set up to ten bookmarks in any order. They are numbered from zero to nine.
To bookmark a line, open the context menu of the Indicator Field and choose .
The system sets the bookmark and displays
with the quick info text
Bookmark <Bookmark Number>.
To navigate to an existing bookmark, open the context menu of the Indicator Field and choose .
You can toggle bookmarks and then navigate to the next or the previous bookmark.
To toggle bookmarks, open the context menu of the Indicator Field and choose .
To navigate between bookmarks, open the context menu of the Indicator Field and choose More. From the submenu, choose between Next Bookmark and Previous Bookmark.