Stepping through the execution

When a session is suspended, you can use the following commands to step through the execution of the program line-by-line:

Command Usage
Step Into This command steps into the current statement:
  1. Select a thread or a stack frame in the Debug view. The current line of execution in the selected frame is highlighted in the editor.
  2. Run the Step Into command, or press F5, to invoke the next instruction to be executed. The execution suspends at the next executable line in the method that is invoked.
Note: Ensure that the Reuse editor when displaying source code option in the Run/Debug preferences dialog box is disabled. If this option is enabled, and you use the Step Into command while the script is not in the workspace, an error page is displayed in some situations.

This command is equivalent to the s action in the classic 4GL Debugger.

Step Over This command steps over the current statement:
  1. Select a thread or a stack frame in the Debug view. The current line of execution in the selected frame is highlighted in the editor.
  2. Run the Step Over command, or press F6, to execute the next instruction. The execution suspends on the next executable line.

This command is equivalent to the S action in the classic 4GL Debugger.

Step Return Run the Step Return command, or press F7, to continue the execution until the end of the current function.

This command is equivalent to the return action in the classic 4GL Debugger.

Run to Line Run the Run to Line command, or press CTRL+R, to move the execution pointer, without executing code, to the line that you selected in the Editor area.

This command is equivalent to the Go to Line (g) action in the classic 4GL Debugger.

Note: 
  • You can start the step commands from the toolbar and the shortcut menu in the Debug view, and from the Run menu in the Eclipse Workbench.
  • You can start the Run to Line command only from the Run menu in the Eclipse Workbench.
  • If a breakpoint is encountered while performing a step operation, the execution will suspend at the breakpoint and the step operation is ended.