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 and select Toggle Watchpoint. The watchpoint is visible in the Variables view and also in the Breakpoints view.

Figure 4. 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 be the address shown in the PC register. This is because of pipelining effects.

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446D