Breakpoints

Breakpoints are lines of code where you want to stop during a debug run to observe the progress of the program. This operation is similar to stepping to the cursor location except that you can set multiple breakpoints, and they persist throughout the program's execution until you reset them.

Setting a Breakpoint:

  1. Double click in the left margin of the line where you want a breakpoint.
  2. Or...
    1. Put the keyboard cursor on the line of code where you want a breakpoint.
    2. Click the Breakpoint tool button.

    3. Or press F2.
    4. Or choose the Breakpoint command on the Debug menu.

Here is a breakpoint set in a program.

The hand icon in the left margin of the source code line indicates that a breakpoint is set. You can set multiple breakpoints in a program across several source code files.

When a Breakpoint Occurs

When you run the program, Quincy interrupts execution when the program arrives at a source code line that has a breakpoint. The green arrow icon displays on top of the breakpoint hand icon in the left margin as shown here.

You can examine and modify variables, set watch variables, and then step or continue running from the breakpoint statement.

Clearing a Breakpoint:

  1. Double click in the left margin of the line where you want a breakpoint.
  2. Or...
    1. Put the keyboard cursor on the line of code where the breakpoint is.
    2. Click the Breakpoint tool button.

    3. Or press F2.
    4. Or choose the Breakpoint command on the Debug menu.

Clearing All Breakpoints:

  1. Click the Clear Breakpoints tool button.

  2. Or choose the Clear Breakpoints command on the Debug menu.


<--previous page next page-->