Java Reference
In-Depth Information
To the right of the call stack is the thread selector. Changing the current thread
also changes the call stack list, because each thread is assigned its own. Alterna-
tively, you can select the thread you wish to inspect via the Threads tab to the
same effect.
You can grab the divider between the frame and thread selectors to ad-
just the width of the two drop-down lists as needed to expose more infor-
mation.
TIP
Popping off a stack frame to back up program execution
The Run | Pop Frame command (also available from the debugger's toolbar)
interrupts program execution and moves the execution point back to the previ-
ous method call, dropping the current method and its descendents from the call
stack. This in effect lets you move execution backward and repeat a series of
method calls.
6.4.2
Inspecting a stack frame
An inspection view of your selected call stack appears in the main body of the
Frame tab of the Debug window, as shown in figure 6.7. For each item in the list,
you can see its name, type, and current value. The icons in this view, listed in
table 6.5, let you quickly distinguish primitive values from object references and
arrays. References are displayed hierarchically; you can inspect an object or array
reference further by expanding its node in the tree. In this manner, you can
access all the values that could affect the method's operation, including private
instance variables of objects reachable by the method.
Figure 6.7
The debugger lets you examine the contents of each frame of the call stack.
 
 
 
 
 
 
 
 
Search WWH ::




Custom Search