Stony Brook Modula-2 archiveData/Watch/Locals Window Basics The Data, Watch and Locals windows all use the same user interface. The differenceb etween 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'); Display of Structured types The data window is able to expand and contract structured types such as arrayand record types. When a variable of one of these types is contracted the data elementwill only show the word ARRAY or RECORD depending on what the variable type is. Whena structure is expanded the entire contents of the type are displayed. As each structuredtype is expanded the data display fields are indented one level. This helps you separateindividual structured types within a complex data structure. When a line in the data window can be expanded the "++" symbol willbe shown in the left most column of the data window. If the data line can be contractedthe "--" 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 samplewindow to learn more. The following example shows a pointer to a record type being displayed. The pointertype is expanded. Keyboard Shortcuts
© Norman Black, Stony Brook Software. Reproduced with permission. |