µVISION: STOPPING PROGRAM EXECUTION ON VARIABLE WRITE
Information in this article applies to:
In the µVision debugger, how can I stop program execution when a particular variable is written to?
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.
Last Reviewed: Wednesday, August 3, 2005
of your data.