Go to Glossary Go to Search Go to IBM C and C++ Compilers Help Home Page Go to IBM Software WWW Site

Monitor Expression Dialog

Use the Monitor Expression dialog to add a variable or expression to one of the following monitors, which are listed in the dialog within a radio button group box:

The context group box on the right side of the Monitor Expression dialog shows the current execution point in your program: the file name, line number, type of view, and thread number.

If you have tried to add an expression to a monitor and the debugger issues the error message "Expression validation failed", you may have included out-of-scope variables or constants in your expression. If you are familiar with the structure of your program, the Context group box may help you determine if scoping problems are the cause of the error.

Type in an expression, and either click on OK or Monitor. OK closes the dialog, while Monitor leaves the dialog open so that you can add more expressions.

If the expression you want to add is already in your source code, you can place that expression in the Expression entry field in the Monitor Expression dialog as follows: highlight it with the mouse, then select Monitor->Monitor expression or click on the toolbar button.



Supported C++ expressions