Stepping through the execution of Magik program

When a thread is suspended, 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 Debug View. The current line of execution in that stack frame is highlighted in the editor in Debug Perspective.
  2. Click Step Over button [ Step Over ] in the view toolbar, or press F6 key. The currently-selected line is executed and suspends on the next executable line.

Step into

  1. Select a stack frame in Debug View. The current line of execution in the selected frame is highlighted in the editor in Debug Perspective.
  2. Click Step Into button [ Step Into ] in the view toolbar, or press 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.

Related concepts
Breakpoints
Magik perspectives

Related tasks
Adding breakpoints
Resuming the execution of suspended threads

Related reference
Debug view