Download Developer MagicTM: Debugger User's Guide
Transcript
Viewing Program Data [7] 7.3 Evaluating Expressions You can evaluate any valid expression at a stopping point and trace it through the process. Expressions are evaluated by default in the frame and language of the current context. Expressions may contain data names or constants; however, they may not contain names known only to the C preprocessor, such as in a #define directive or a macro. To evaluate expressions, you can use Expression View, which lets you evaluate multiple expressions simultaneously, updating their values each time the process stops. Note: You can also evaluate expressions from the command line. See Section A.9, page 312 for more information. 7.3.1 Expression View Window The Expression View window is shown in Figure 35, page 100, with its major menus displayed. The Expression View window has two pop-up menus, the Language menu and the Format menu: • The Language menu is invoked by holding down the right mouse button while the cursor is in the Expression column. • The Format menu is displayed by holding down the right mouse button in the Result column. To specify the expression to be evaluated, click in the Expression column and then enter the expression in the selected field. It must be a valid expression in the current or selected language: Ada, C, C++, or Fortran. To change languages, display the Language menu and make your selection. When you press Enter, the result of the expression is displayed in the Result column. 007–2579–005 99