beautypg.com

Change format for variable value display – Freescale Semiconductor Microcontrollers User Manual

Page 207

background image

How To...

How to Work on Variables

207

Microcontrollers Debugger Manual

Change Format for Variable Value Display

The Debugger allows you to see the value of variables in different formats. This is set by
entries in the Format menu (

Table 6.1

).

• Values for pointer variables are displayed in hexadecimal format.

• Values for function pointer variables are displayed as function name.

• Values for character variables are displayed in ASCII character and decimal format.

• Values for other variables are displayed in signed or unsigned decimal format

depending on the variable being signed or not.

Format menu is activated as follows:

1. Right-click in the Data component. The Data Context Menu is displayed on the screen.

2. Choose Format from Context Menu. The list of formats is displayed on the screen.

The format selected is valid for the whole Data component. Values from all variables in
the data component are displayed according to the selected format.

Table 6.1 Debugger Display Format

Menu entry

Description

Hex

Variable values are displayed in hexadecimal format.

Oct

Variable values are displayed in octal format.

Dec

Variable values are displayed in signed decimal format.

UDec

Variable values are displayed in unsigned decimal format.

Bin

Variable values are displayed in binary format.

Symbolic

Displayed format depends on variable type.