Stepping Through the Execution of a Perl Program

When a thread is suspended, the step controls can be used to step through the execution of the program line-by-line. If a breakpoint is encountered while performing a step operation, the execution will suspend at the breakpoint and the step operation is ended.

Step Over

  1. Select a stack frame in the Debug view. The current line of execution in that stack frame is highlighted in the editor in the Debug perspective.

  2. Click the Step Over button () in the Debug view toolbar, or press the F6 key. The currently selected line is executed and suspends on the next executable line.

Step Into

  1. Select a stack frame in the Debug view. The current line of execution in that stack frame is highlighted in the editor in the Debug perspective.

  2. Click the Step Into button () in the Debug view toolbar, or press the F5 key. The next expression on the currently selected line to be executed is invoked, and execution suspends at the next executable line in the method that is invoked.

Run to Return

  1. Select a stack frame in the Debug view. The current line of execution in that stack frame is highlighted in the editor in the Debug perspective.

  2. Click the Run To Return button () in the Debug view toolbar, or press the F7 key. Execution resumes until the next return statement in the current subroutine is executed, and execution suspends on the next executable line.