Console view

This view shows the output of the execution of your program and enables you to enter input for the program.

Console View

The console shows three different kinds of text, each in a different color:

You can choose the different colors for these kinds of text on the preferences pages (Window > Preferences > Debug > Console).

Console View Context Menu

When you right-click in the Console view (or when you press Shift+F10 when the focus is on the Console view), you see the following options:

Edit options: Cut, Copy, Paste, Select All
These options perform the standard edit operations. Which options are available depends on where the focus is in the Console view. For example, you cannot paste text into the program output, but you can paste text to the bottom of the file.
Find/Replace
Opens a Find/Replace dialog that operates only on the text in the Console view.
Go to Line
Opens a dialog that moves the focus to the line you specify. The dialog also indicates the total number of lines in the console buffer.
Open on type
This command, which is used with Java programs, opens a type in an editor based on content in the console. There are two ways this can happen:

For example, if the cursor is placed on the following line of output in the console:

at com.foo.bar.Application.run(Application.java:58)

An editor for the type com.foo.bar.Application is opened and line 58 is selected and displayed. Note that if the word 'Application' had been selected, then you would have been prompted to choose a fully qualified instance of 'Application' (if more than one was in the workspace), and an editor would have opened at the beginning of the type.

Terminate
Terminates the process that is currently associated with the console.

Console View Toolbar

IconCommandDescription
Terminate Terminates the process that is currently associated with the console.
Remove all Terminated Launches Removes all terminated launches that are associated with the console.
Scroll Lock Toggles the Scroll Lock.
Clear Console Clears the console.
Pin Console Forces the Console view to remain on top of other views in the window area.
Display Selected Console If multiple consoles are open, you can select the one to display from a list.
MinimizeConsole Minimizes the Console view.
Maximize Console Maximizes the Console view.

Related concepts

Related tasks

Related reference

Red Hat Copyright Statement
IBM Copyright Statement