Display global variable from a module – Freescale Semiconductor Microcontrollers User Manual

Page 206

Advertising
background image

How To...

How to Work on Variables

206

Microcontrollers Debugger Manual

• Double-click

Double-click a function name in the Procedure component.

The Data component (for local that is neither frozen or locked) displays the list of
variables defined in the selected function with their values and type.

Display Global Variable from a Module

The Debugger provides two ways to see a list of global variables defined in a module:

Opening Module Component

1. Choose Component > Open. The list of all available components is displayed on the

screen.

2. Double-click the entry Module. A module component is opened, which contains the

list of all modules building the application.

3. Drag a module name from the Module component to a Data component with attribute

Global.

Using Context Menu

1. Right-click in a Data component with attribute Global.

2. Choose Open Module in Context Menu. A dialog box is opened, which contains the

list of all modules building the application.

3. Double-click on a module name. The Data component for global, which is neither

frozen nor locked is the destination component.

The destination Data component displays the list of variables defined in the selected
module with their values.

Advertising