Expression editor – Freescale Semiconductor Microcontrollers User Manual

Page 80

Advertising
background image

Debugger Components

General Debugger Components

80

Microcontrollers Debugger Manual

• Select a variable in the Data component, and left mouse button + W key to set a

Write watchpoint on the selected variable. A red vertical bar is displayed on the left
side of the variables on which a write watchpoint has been defined. If write access is
detected on the variable during execution, the program is halted and the current
program state is displayed in all window components.

• Select a variable in the Data component, and left mouse button + B key to set a Read/

Write watchpoint on the selected variable. A yellow vertical bar is displayed for the
variables on which a read/write watchpoint has been defined. If the variable is
accessed during execution, the program is halted and the current program state is
displayed in all window components.

• Select a variable on which a watchpoint was previously defined in the Data

component, and left mouse button + D key to delete the watchpoint on the selected
variable. The vertical bar previously displayed for the variables is removed.

• Select a variable in the Data component, and left mouse button + S key to set a

watchpoint on the selected variable. The Watchpoints Setting dialog box opens. A
gray vertical bar displays for the variables on which an watchpoint has been defined.

Expression Editor

To add your own expression (in EBNF notation) double-click a blank line in the Data
component window to open the Edit Expression dialog box shown in

Figure 3.19

, or

point to a blank line as shown below and right-click to select Add Expression in the
context menu shown in the figure below.

You may enter a logical or numerical expression in the edit box, using the Ansi-C syntax.
In general, this expression is a function of one or several variables from the current Data
component window.

Figure 3.19 Edit Expression Dialog Box

Advertising