Set a Variable Change Breakpoint

The variable change breakpoint is a special type of conditional breakpoint that halts program execution when the value of a specified variable changes.

A variable change breakpoint is not associated with any statement in the program. It applies to all the statements in the program.

You can add a variable change breakpoints from within the Program Listing area by right-clicking the statement where the variable is defined, and then selecting Add breakpoint.

You can also add variable change breakpoints using the following procedure. You can modify variable change breakpoints using the Configure Breakpoints icon in the Breakpoints view toolbar.

To add a variable change breakpoint in the Breakpoints view

  1. Select Window, Show Views, Breakpoints.

    The Breakpoints view opens.

  2. Double-click the program for which you want to add breakpoints in the InterTest Debug view.

    The program opens in the Program Listing area.

  3. Click the Add a Global Breakpoint icon An icon for adding a global breakpoint in the Breakpoints view toolbar.

    The Add Global Breakpoint dialog opens.

  4. Select Variable Change under the Breakpoint Type.

    The fields on the Add Global Breakpoint-Variable Change Breakpoint dialog differ depending on the project types.

  5. Do one of the following:
  6. Click Finish.

    The Breakpoints view refreshes to show the new breakpoint.

To add a variable change breakpoint using the Program Listing area

  1. Select Window, Show Views, InterTest Debug.

    The InterTest Debug view opens.

  2. Double-click the program in which you want to add breakpoints.

    The program opens in the Program Listing area.

  3. Position at the statement where the variable is defined.
  4. Right-click the ruler to the left of the line, and select Add Breakpoint. If the statement is a comment or a programming structure element (for example Procedure Division) then the breakpoint will apply to the first valid statement PRIOR to the statement being selected.

    The Breakpoints view refreshes to show the new breakpoint.


Copyright © 2016 CA. All rights reserved.