Define a condition under which a breakpoint should be executed.
You can set both a conditional and a hit count on the same breakpoint.
- Open the Breakpoint Condition dialog box:
- In the Breakpoints window, right-click a breakpoint and select
Condition.
- In the Script window or Call Stack window, right-click a breakpoint and
select .
- Specify a valid boolean PowerScript expression.
- Set the Is true option:
- Select the option to break when the expression is true.
- Unselect it to break when the expression is false.
By default, this option is selected.
If the expression is invalid, PowerBuilder ignores it, so the
breakpoint is always triggered.
- Set the Has changed option:
- Click OK.