Keil Logo

WatchSet

The WatchSet debug command defines watch expressions that are displayed in a Watch window.

Syntax Description
WS [winNr], expr, [base] The watch expression, expr, is added to the Watch window, winNr. The value is displayed in the number- base specified by the parameter base.
winNr Watch window number; Is optional when base is not specified. Default is 1. Can be set to 1 or 2.
expr Any valid symbol, variable, register, or expression that can be evaluated.
base base for numbers. By default identical to the system variable radix. Can be set to 10 or 16.
Examples
>WS save_record[0].analog         // watch expr. displayed in Watch window 1; default number base
>WS 2, save_record[0].analog      // watch expr. displayed din Watch window 2; default number base
>WS 2, save_record[0].analog, 10  // watch expr. displayed din Watch window 2; number base 10

>WS save_record[0].analog, 10     // Not valid. winNr is missing where base has been specified
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.