Java Reference
In-Depth Information
When defining expressions, you can use IDEA 's code-completion features to
help you. All method calls and member variable access is relative to the object
you're rendering.
Launching an inspection window
You can inspect any reference in its
own window by right-clicking its
icon and selecting the Inspect menu
item. Doing so creates a separate
window for that object reference,
including all of its child references.
An example is shown in figure 6.10.
Inspector windows are non-
modal, and you can launch as many
as you need. Any values that change
in the main view are instantly visible
in their corresponding inspector
window. There is no difference in
the two views; the inspector window
just lets you focus on a particular
reference without all the clutter. This is particularly helpful if you need to exam-
ine two references in detail and there isn't enough screen real estate to view them
both within the Frame tab's inspector view simultaneously.
Figure 6.10 An inspector window lets you focus on
the most interesting objects.
Switching between hex and decimal views
By default, numeric values are shown in base 10 decimal. You can toggle the view
by selecting the Show as Hex option from the context menu. A mark appears that
indicates the viewing mode; it changes when you toggle the option. You must
change the display type for each reference individually; there is no way to set hex
mode for the entire view. All numeric values revert back to their decimal view at
the start of the next debugging session. You can adjust the view for numeric
arrays as well, allowing you to view all members of the array in the appropriate
base. To do so, select the View all as Hex or View all as Decimal option from the
context menu.
Viewing objects by their String value
Objects in the stack view are normally shown by their class name and instance ID .
This is the fastest and tersest view possible, but not always the most useful. If you
 
 
 
Search WWH ::




Custom Search