Keil Logo

µVISION: Stopping Program Execution on Variable Write


Information in this article applies to:

  • C166 Version 4.03

QUESTION

In the µVision debugger, how can I stop program execution when a particular variable is written to?

ANSWER

The µVision debugger is based on dScope and many of the dScope commands are included in the µVision debugger.

The command you need is BREAKSET (BS). For example:

BREAKSET WRITE foo == 3

stops execution when a 3 is written to the variable foo.

It is also possible to set access breakpoints using the Breakpoints dialog window in µVision debugger. Full details of how to do this may be found in the Getting Started guide.

Last Reviewed: Thursday, January 7, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.