When you choose Run > Debug As > Java Application
to debug your class, you are debugging your class using a generic Java
Application launch configuration that uses default settings for trace output.
The default setting is to display the trace output in the console. You can
choose to write the trace output to a file.
About this task
You do this by creating your own Java Application
launch configuration.
- Select Run > Debug Configurations... from
the workbench menu bar. This opens a dialog that lets you create, modify,
and delete launch configurations of different types.
- Select Java Application in the left hand list of launch
configuration types, and press the New button in the
toolbar. This will create a new launch configuration for a Java application.
- The Tracepoint tab defines the location of
the trace output. Check the console checkbox if you
want to display the trace output to the Console View.
Check the File checkbox if you want to write the trace
output to a file. If you select this option, you must also specify a filename.
- The Append checkbox is enabled if the
File checkbox is checked. Check the Append
checkbox if you want the trace output to be appended to the file name specified.
Uncheck the Append checkbox if you want the content
of the file erased, before the trace output is written to it.