Setting a conditional line breakpoint

When you set a line breakpoint, you can specify optional parameters or conditions for that breakpoint. When entering conditional statements, any non-zero value is considered true and will stop program execution (depending on the language that you are debugging).

About this task

To set a conditional breakpoint:

Procedure

  1. Right-click in the Breakpoints window and select the line breakpoint option in the Add Breakpoint group.
  2. In the resulting breakpoint wizard, complete all entries that are required to set the breakpoint. When the required entries have been made, the Next push button will be available.
  3. Click Next to proceed to the second page (Optional parameters) of the breakpoint wizard.
  4. In the Optional parameters page, complete any or all optional parameters that you want as conditions for your breakpoint.
  5. Click Finish to set the conditional breakpoint and dismiss the dialog.

Results

For information about the individual parameters and conditions that you can apply to a breakpoint, see the related reference below.


Feedback