|
|||||||||||
Technical Support On-Line Manuals µVision3 User's Guide µVision3 Overview User Interface Creating Applications Utilities Debugging Debug Commands Debug Functions Simulation Flash Programming Dialogs Example Programs Hello: Your first Embedded Program Measure: A Remote Measurement System Measure - Project File Compiling and Linking Measure Testing Measure View Program Code View Memory Contents Program Execution Call Stack Trace Recording Breakpoints Dialog Watch Variables Source Browser Command Line Appendix |
Breakpoints DialogµVision3 also supports complex breakpoints as discussed on page 109. You may want to halt program execution when a variable contains a certain value. The example shows how to stop when the value 3 is written to current.time.sec.
Open the Breakpoints dialog from the Debug menu. Enter as expression current.time.sec==3. Select the Write check box (this option specifies that the break condition is tested only when the expression is written to). Click on the Define button to set the breakpoint. To test the breakpoint condition perform the following steps:
After a few seconds, µVision3 halts execution. The program counter line in the debug window marks the line in which the breakpoint occurred. | ||||||||||
|
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.