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. Full details of how to do this may be found in the Getting Started and Creating Applications manual.

MORE INFORMATION

  • Refer to page 204 in the dScope for Windows manual (01.97) for more information on the BREAKSET command.
  • Refer to page 69 in the Getting Started and Creating Applications manual (07.99) for more information on setting Breakpoints in µVision.

Last Reviewed: Wednesday, August 3, 2005


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.