Conditional Breakpoints

Studio supports conditional breakpoints as well as normal breakpoints. Conditional breakpoints cause a break in the execution of the program when a user-defined condition is met. For example, a normal breakpoint stops the application when the breakpoint is reached. A conditional breakpoint can be defined to stop the application only after a certain number of iterations in a recursive loop.

 

To define a conditional breakpoint:

  1. From the Editing window, insert a standard breakpoint at the appropriate point in the application code.
    The breakpoint line appears highlighted.

  2. Click Breakpoints from the Toolbar of the Debug window.
    A list of breakpoints currently defined in the application is displayed.

  3. Select the breakpoint for which you want to define a condition and right-click to open the right-click menu.

  4. Select Edit Condition .
    The Edit Condition dialog box opens.

  5. Insert a breakpoint condition.

  6. Click OK .

The breakpoint will now exit to the debugger only when the breakpoint condition is met.

 

 

Related Links

Related Links:
Controlling Program Flow

Using Breakpoints

Debugging

Internal Debugger

Controlling Program Flow

Monitoring Program State

Communication Tunnel