Breaking On Value Change

Related Topics:

Breaking On Value Change Breaking On Modify
Breaking On Condition Breakpoints Window

You can set an On Value Change breakpoint to stop program execution when the contents of a variable change.

To set an On Value Change breakpoint:

1. In the Debugging Window, choose Windows Breakpoints. Or, choose Execute Set Breakpoints.

2. If the Details pane of the Breakpoints window is not displayed, click the Add/Change Breakpoint button (the Add/Change Breakpoint button toggles to Hide Details).

3. Choose Event On Value Change and type the variable you want to view in the Event text box. For example:
var, or var[10]

4. Choose Action Stop.

5. Click Add.

The breakpoint triggers after the line where the variable's value changed.


Note - To improve execution speed, limit single-stepping to a particular function using Option While in.