Home

 

Debug perspective

By default, the Debug perspective contains five panes with the following views:

Top left-Shows Debug and Servers views

Top right-Shows Breakpoints and Variables views

Middle left-Shows the editor for the resource being debugged

Middle right-Shows the Outline view of the resource being debugged

Bottom-Shows the Console and the Tasks view

Figure 4-12 Debug perspective

The important views while debugging are as follows:

Debug view-The Debug view displays the stack frame for the suspended threads for each target you are debugging. Each thread in your program appears as a node in the tree. If the thread is suspended, its stack frames are shown as child elements.

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 point in the source where the thread is currently positioned.

The Debug view contains a number of command buttons that enable users to perform actions such as start, terminate, and step-by-step debug actions.

Variables view-The Variables view displays information about the variables in the currently selected stack frame.

Breakpoints view-The Breakpoints view lists all the breakpoints you have set in the Workbench projects. You can double-click a breakpoint to display its location in the editor. In this view, you can also enable or disable breakpoints, remove them, change their properties, or add new ones. This view also lists Java exception breakpoints, which suspend execution at the point where the exception is thrown.

Servers view-The Servers view lists all the defined servers and their status. Right-clicking a server displays the server context menu, which allows the server to be started, stopped, and to republish the current applications.

Outline view-The Outline view shows the elements (imports, class, fields, and methods) that exist in the source file in the front editor. Clicking an item in the outline will position you in the editor view at the line where that structure element is defined.

Problems view-This view shows all errors, warnings, and information messages related to resources in the workspace. The items listed in this view can be used to navigate to the line of code containing error, warning, or information point.

The Console and Tasks views have already been discussed in earlier sections of this chapter.

More information about the Debug perspective can be found in Chapter | 4, Debugging local and remote applications.

ibm.com/redbooks