2.3.87. MONITOR

Adds the named variable to the list of monitored, or watched, variables, displayed in the Watch view.


This command is not available when running in command line mode.


MONITOR 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.


The MONITOR command adds a variable to the list of watched variables displayed in the Watch view 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 view.


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

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


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

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0175N