| |||
| Home > RealView Debugger Commands > Alphabetical command reference > MONITOR | |||
The MONITOR command adds the named variable to the list of monitored, or watched, variables, displayed in the Watch pane.
This command is not available in the headless debugger.
MONITORvariable_name
where:
variable_nameThe 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 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.
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 countMonitor the value of the variable count, displaying the value as an integer.
moni thisMonitor
the members of the current C++ class, through the C++ class pointer this.
moni \\MAIN_1\ALLOC\maxallocMonitor the global variable maxalloc from
the file main.c.
The following commands provide similar or related functionality: