Array Panel
The Array Panel is the right-hand side panel in the top-level
Objects Window.
The Array Panel is initially displayed by double-clicking on an array
displayed in the Locals Panel,
This Panel, or Watch Panels
in the top-level Main Window;
by inspecting an array in the Source Panel in the
top-level Main Window.
You can also further drill down by double-clicking on an object already
displayed in the Object Panel or Array Panel
in the top-level Objects Window.
The Array Panel displays the Java array as a table. The footer displays (in blue)
the declaration of the array (including the low and high indices of the elements
being displayed), the array variable name, and the corresponding
object ID of the array. A tool tip displays the array element's full type name.
The bounds of the array being displayed are previously specified via the
Select Array Bounds Dialog.
table
Each row in the table represents an array element. Each element has the following
attributes (which are the columns of the table).
[Shift] Click on a column header to sort the table in
[descending] ascending order according to that column.
- Index - the array index.
- Value - the current value of the array element. Changed values are displayed
in red. If the value is a non-null reference, then the corresponding object ID will
be displayed in blue. If the value is a null reference, then "null"
will be displayed in blue. Strings and characters are displayed in magenta.
To change a value of a primitive variable (boolean, byte, short, int, long, character, float, double),
double click on the corresponding value cell and enter the new value followed by hitting
the Enter key (or hit the Escape key to cancel the editing).
The new value string must validate in order for the change to be made.
A Tool Tip is displayable for each array element row in the table.
For object references, the Tool Tip displays the object's fields in the
inheritance hierarchy. For array references, the Tool Tip displays the
beginning array elements. For string references, the Tool Tip displays the
beginning string characters. The number of lines displayed in a Tool Tip
is configurable in the Global Settings Dialog.
While the target JVM is running, an hour glass cursor will be displayed in the Array Panel.
context menu
A popup Context Menu menu is displayed by right-clicking on the table:
- Inspect... - displays the selected (array element) non-null object
reference as a subtree node
in the top-level Objects Window.
Strings are displayed in the String Panel
in the top-level String/To String Window.
This can also be accomplished by double clicking on a table row.
- To String... - invokes the toString() method on the selected (array element)
non-null object reference and displays
the resulting string in the To String Panel
in the top-level String/To String Window.
- Redisplay... - displays this array as another sibling tree node
in the top-level Objects Window.
A Select Array Bounds Dialog will first
be displayed allowing the User to select the array boundaries to be displayed.
- Hex - displays the selected array element (which must be of
type short, int or long) in hexadecimal.
- Decimal - displays the selected array element (which must be of
type short, int or long) in decimal.
- Hex All - displays all array elements (which must be of
type short, int or long) in hexadecimal.
- Decimal All - displays all array elements (which must be of type
short, int or long) in decimal.
- Unsort - returns the table data to its default order.
- Help... - displays this Help.
©2001-2010. debugtools.com LLC. All rights reserved.