Setting Custom Breakpoint Actions | Breakpoints Window |
You can set an On Condition breakpoint to change the value of a variable when the value of an expression becomes True.
If you were using dbx, the command would be:
when cond x==10 {assign x=15;}
To set the same breakpoint in the Breakpoints window, you would set the following in the Details pane:
The debugger automatically adds { ;} for assign x=15. The syntax reads:
{assign x=15;}
If you click Add, an extra { ;} will be added in the Action text field.
If you click Change, the selected breakpoint is changed from
when cond x==10 {assign x=15;}
to
when cond x == 10 -replace 2 { assign x=15 ; }