Examples of the On Modify Breakpoint

To set a stop On Modify breakpoint to stop whenever the address that contains y is modified, you would set the following in the Details pane:

You can set an On Modify breakpoint to stop when the contents of a string changes. For example, your program has a variable defined as:

char *sp = "hello world\n"	

To find where a change occurs in the value of sp by setting the following in the Details pane:

The sp does not require an ampersand (&) because you want to watch the string.


Note - If the variable you want to track is visible in the Debugging or editor window, you can select the expression, then choose Data Stop on Modify Selected. Use the action Stop with On Modify to stop when a variable reaches a certain number.

Note - You can enter just a variable name if the variable contains the address of another variable you want to watch.