Data/Watch/Locals Window Basics

The Data, Watch and Locals windows all use the same user interface. The difference between them is in what they display and some slight differences in expression evaluation.

The data window display is for the most part quite obvious and simple to understand. Data is displayed in the same format as the Modula-2 and Ada95 languages use, including enumeration types.

Note: Ada95 redefinition of the character literal enumeration types will not display properly in the debugger.

For example:

type MyEnum = (One, Two, 'A', 'B');

Data window context menu

Watch window context menu

Display of Structured types

The data window is able to expand and contract structured types such as array and record types. When a variable of one of these types is contracted the data element will only show the word ARRAY or RECORD depending on what the variable type is. When a structure is expanded the entire contents of the type are displayed. As each structured type is expanded the data display fields are indented one level. This helps you separate individual structured types within a complex data structure.

When a line in the data window can be expanded the "++" symbol will be shown in the left most column of the data window. If the data line can be contracted the "--" symbol will be shown. Otherwise no symbol is shown in this column.

The following sample data window shows a two dimensional array being displayed. The array bounds for both dimensions range from 0..3. Click on areas of the sample window to learn more.

The following example shows a pointer to a record type being displayed. The pointer type is expanded.

Keyboard Shortcuts

Key Function
Enter Expand or contract the structured type
Insert Alter the selected data item
ab Change the secondary numeric display format radix.
Esc Close the Window

Common Keyboard Shortcuts