Deleting a watchpoint, Associate a command with a watchpoint – Freescale Semiconductor Microcontrollers User Manual

Page 178

Advertising
background image

Control Points

Setting Watchpoints

178

Microcontrollers Debugger Manual

Deleting a Watchpoint

The Debugger provides three ways to delete a watchpoint:

Use Delete Breakpoint from Context Menu:

1. In the Data window, point to a variable where a watchpoint has been defined and right-

click. The Data Context Menu is displayed.

2. Select Delete Watchpoint from the Context Menu. The watchpoint is deleted and the

vertical bar in front of the variable is removed.

Using the Left Mouse Button and Pressing the D Key:

1. Point at a variable in the Data window, hold down the left mouse button and press the

D key. The Watchpoints tab of the Controlpoints Configuration window is displayed.

2. The watchpoint is deleted and the vertical bar in front of the variable is removed.

Choosing Show Watchpoints from Data Context Menu:

1. Point in the Data window and right-click. The Data context menu is displayed.

2. Choose Show Watchpoints from the context menu. The Watchpoints tab of the

Controlpoints Configuration window is displayed.

3. Select the watchpoint you want to delete.

4. Click Delete. The selected watchpoint is removed from the list of defined watchpoints.

5. Click OK to close the window. The watchpoint is deleted and the vertical bar in front

of the variable is removed.

Associate a Command with a Watchpoint

Each watchpoint type (read, write, read/write, counting, or conditional) can be associated
with a debugger command. This command can be specified in the Watchpoints tab of the
Controlpoints Configuration window. To open this window:

Choosing Show Watchpoints from Data Context Menu:

1. Point in the Data Component Window and right-click. The

Data Context Menu

is

displayed.

2. Select Show Watchpoints from the Context Menu. The Watchpoints tab of the

Controlpoints Configuration window is displayed.

3. Click on the corresponding entry in the list of defined breakpoints to select the

watchpoint you want to modify.

Advertising