| |||||||
Technical Support On-Line Manuals µVision® User's Guide | 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. | ||||||
| |||||||