Skip to main content

IAR Embedded Workbench for RH850 3.20.x

Quick Watch window

In this section:

The Quick Watch window is available from the View menu and from the context menu in the editor window.

QW_macro_Mym80_04.png

Use this window to watch the value of a variable or expression and evaluate expressions at a specific point in time.

In contrast to the Watch window, the Quick Watch window gives you precise control over when to evaluate the expression. For single variables this might not be necessary, but for expressions with possible side effects, such as assignments and C-SPY macro functions, it allows you to perform evaluations under controlled conditions.

To evaluate an expression:
  1. In the editor window, right-click on the expression you want to examine and choose Quick Watch from the context menu that appears.

  2. The expression will automatically appear in the Quick Watch window.

    Alternatively:

  3. In the Quick Watch window, type the expression you want to examine in the Expressions text box.

  4. ClickRELOADButton.png the Recalculate button to calculate the value of the expression.

    For an example, see Using C-SPY macros.