ARM Technical Support Knowledge Articles

STOPPING PROGRAM EXECUTION ON VARIABLE WRITE

Applies to: uVision IDE

Answer


Information in this article applies to:


QUESTION

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

ANSWER

The uVision debugger is based on dScope and many of the dScope commands are included in the uVision 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 uVision. Full details of how to do this may be found in the Getting Started and Creating Applications manual.

MORE INFORMATION

Article last edited on: 2005-08-03 15:13:42

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential