To create a conditional breakpoint

1- Choose Run ^ Add Breakpoint ^ Source Breakpoint to display the Add Source Breakpoint dialog box.

2. In the Line number field, enter the line in the Code Editor where you want set the breakpoint.

To pre-fill the Line number field click a line in the Code Editor to pre-fill the Line number field prior to opening the Add Source Breakpoint dialog box.

  1. In the Condition field, enter a conditional expression to be evaluated each time this breakpoint is encountered during program execution.
  2. Click OK.

Conditional breakpoints are useful when you want to see how your program behaves when a variable falls into a certain range or what happens when a particular flag is set.

If the conditional expression evaluates to true (or not zero), the debugger pauses the program at the breakpoint location. If the expression evaluates to false (or zero), the debugger does not stop at the breakpoint location.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment