Adding Line Breakpoints

Line breakpoints are set on an executable line of a program.

  1. In the editor area, open a file where you want to add the breakpoint.
  2. Directly to the left of the line where you want to add the breakpoint, open the marker bar (vertical ruler) pop-up menu and select Toggle Breakpoint.   You can also double-click on the marker bar next to the source code line.  A new breakpoint marker appears on the marker bar, directly to the left of the line where you added the breakpoint. Also, the new breakpoint appears in Breakpoints View list.

After adding the breakpoint, it is installed in the VM. The following dialog may be displayed:

NOTE: Only installed breakpoints suspend code execution.

While the breakpoint is enabled, thread execution suspends before that line of code is executed. The debugger selects the thread that has suspended and displays the thread's stack frames. The line where the breakpoint was set is highlighted in the editor in Debug Perspective.

Related concepts

Local Debugging
Magik perspectives
Magik editor

Related tasks

Removing breakpoints
Stepping through the execution of a program

Related reference

Breakpoints view