Show TOC

Function documentationSource Code Execution and Navigation Locate this document in the navigation structure

 

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

Caution Caution

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.

End of the caution.

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.

    Note Note

    When you choose Single Step and you are at a CASE statement, the system branches to the corresponding WHEN block automatically.

    End of the note.
  • 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   Debugger   Goto Statement  .

  • 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   Debugger   Continue to Cursor  .

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   Navigation   Go to Line…  , 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   Navigation   Navigate Backwards  .

    • Navigate Forward

      Open the context menu and choose   Navigation   Navigate Forwards  .

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   Bookmarks   Bookmarks <Bookmark Number>  .

    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   Goto Bookmark   Bookmark <Bookmark Number>  .

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   More   Toggle Bookmarks  .

  • 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.