You copied the Doc URL to your clipboard.

Setting a data watchpoint

There are times when you want to monitor the values of specific variables or expressions in your source code when running an application. You can do this by setting watchpoints.

In the Variables view, right-click on a data symbol, select Toggle Watchpoint, select the required access type, and then click OK. The watchpoint is visible in the Variables view and also in the Breakpoints view.

Figure 8. Setting a data watchpoint

Setting a data watchpoint


Watchpoints are only supported on scalar values.

Some targets do not support watchpoints. Currently you can only set a watchpoint on a hardware target using a debug hardware agent.

The address of the instruction that triggers the watchpoint might not correspond with the instruction at the address shown in the PC register. This is because of pipelining effects.