Step 1. Switch to the Debug Perspective.

previous step next step


The Debug perspective is a collection of panes that is particularly useful when debugging programs. Programs may run considerably slower in debug mode than in normal mode, especially when window graphics and text must be updated. Be patient!

1. Switch to the Debug perspective. Select Window --> Open Perspective --> Debug from the menu bar.
2. Reset the perspective to its defaults. Select Window --> Reset Perspective from the menu bar.

The Debug Perspective

The Debug perspective consists of several panes. Each of the five main areas of this perspective are described below.

If the Aquarium.java file is not showing as seen in the image below:

  1. Switch to the Java perspective.

  2. Open the Aquarium.java file.
  3. Switch back to the Debug perspective.
Sample debug perspective
  1. The top left pane is called the Debug pane.
  2. This pane keeps a record of the results of each session you have terminated. If you ran the simulation before opening the debug perspective, there will be an entry. An exit value of 0, means that program ended normally. It is a good idea to clear this pane regularly to reduce clutter on your screen.

    To remove all terminated debugging sessions, press the Remove All Terminated Sessions button in the Debug pane.

  3. The top right pane includes multiple panes stacked on top of one another. There are two panes in the default view.

  4. These panes will be discussed in more detail later. Click on the label of either pane to view the pane.

  5. The middle left pane shows stacked source (text) panes, one for each source file that you have opened.
  6. You have seen a similar view in the Java perspective. However, this view is somewhat different. The shaded bar on the left is used to set breakpoints.

  7. The middle right pane is the Outline pane. You should be familiar with the Outline view pane as well.

  8. At the very bottom are some additional stacked panes. You should recognize the Console pane from the Java perspective.
  9. Action!Provide me with a screen shot of your environment at this point.

previous step next step