2.3.81. MONITOR

The MONITOR command adds the named variable to the list of monitored, or watched, variables, displayed in the Watch pane.

Note

This command is not available in the headless debugger.

Syntax

MONITOR variable_name

where:

variable_name

The name of a variable or expression in the current context, or a path name, using the \\module\proc\variable syntax, for a variable that you are monitoring.

Description

The MONITOR command adds a variable to the list of watched variables displayed in the Watch pane of the debugger. This list displays the values of each variable every time the debugger stops, for example at a breakpoint. If the variable is out of scope when the debugger stops, the value is printed as Symbol not found without qualification.

You can add pointer and structure variables to this list. If you do, the values of members and referenced variables can be displayed using the icon next to the pointer name in the watch pane.

Note

  • MONITOR is equivalent to display, found in some other debuggers.

  • You can print the value of a variable using the CEXPRESSION or PRINTVALUE command.

Examples

The following examples show how to use MONITOR:

monitor count

Monitor the value of the variable count, displaying the value as an integer.

moni this

Monitor the members of the current C++ class, through the C++ class pointer this.

moni \\MAIN_1\ALLOC\maxalloc

Monitor the global variable maxalloc from the file main.c.

See also

The following commands provide similar or related functionality:

Copyright © 2005, 2006 ARM Limited. All rights reserved.ARM DUI 0284C
Non-Confidential