With the Debug view, you can manage the debugging of a program
in the workbench. It displays all debug sessions. Each debug session contains
threads and stack frames. The thread at the current execution point automatically
expands and the top stack frame is selected.
About this task
If the resource containing a selected thread is not open and/or
active, the file opens in the editor and becomes active, focusing on the source
with which the thread is associated and highlighting the source line that
the program is about to execute.
You can have the properties of stacks
and threads displayed in the Properties view, as follows:
Procedure
- Open the Properties view by choosing Window > Show
View > Other and then selecting the Properties view from the
set of General views.
- In the Debug view, go to the stack frame whose properties you want
to view. If necessary, expand the thread nodes and use the scroll bars, Up
and Down keys, or PageUp and PageDown keys to scroll the Debug view until
the stack frame is visible.
- Select the stack frame to have its properties display in the Properties
view.
Results
To display the current line of execution of a thread that has caused
the debugger to stop (for example, the thread where a breakpoint was hit),
right-click the debug target, thread, or stack frame, and choose Show
Stopping Thread from the pop-up menu.
Depending on the language
and platform that you are debugging, you can perform a variety of debug actions
from the Debug view:
- Setting the debugger to suspend execution at all function entry points
(similar to setting entry breakpoints).
- Setting the debugger to suspend execution when date fields are accessed.
- Setting the debugger to perform a heap check when execution is suspended.