Stepping through Jython script

When a thread is suspended, the step controls can be used to step through the execution of Jython script line-by-line.

While performing a step operation, if a breakpoint or exception is encountered, execution suspends at the breakpoint or exception, and the step operation ends.

Tip: You can use combinations of step into and step return commands to step through multiple calls on a single line.

Step Over

When you step over a function call, program execution stops in the next statement. To execute a step over command:

  1. Select a stack frame in the Debug view.
  2. The current line of execution in that stack frame is highlighted in the editor in the Debug perspective.
  3. Perform one of the following tasks:
    • Click the Step Over button in the Debug view toolbar.
    • Select Run > Step Over from the workbench menu bar.
    • Press F6.
  4. The currently-selected line is executed and execution suspends on the next executable line.

Step Into

Note: You can only do a step into at the top stack frame.

With this command, you can step into the first line of a function. To execute a step into command:

  1. Select a stack frame in the Debug view.
  2. The current line of execution in that stack frame is highlighted in the editor in the Debug perspective.
  3. Perform one of the following tasks:
    • Click the Step Into button in the Debug view toolbar.
    • Select Run > Step Into from the workbench menu bar.
    • Press F5.

Step Return

If you issue a step return from inside a function, execution will stop at the last line of the current function and the return value will display in the Variables view in a __return__ variable. If you issue another step return (or step over/step into), execution will return to the caller of the function.

If you issue a step return from the last line of a code block, the function will not be exited - execution will stop in the run time location instead - and the __return__ variable will display the return value. To execute a step return command:

  1. Select a stack frame in the Debug view.
  2. The current line of execution in the selected frame is highlighted in the editor in the Debug perspective.
  3. Perform one of the following tasks:
    • Click the Step Return button in the Debug view toolbar.
    • Select Run > Step Return from the workbench menu bar.
    • Press F7.

Feedback