The debug launch shortcuts offer a quick and convenient way to
start a debug session.
Note: When you launch a Java™ class using the Java and
mixed language debugger launch shortcut, the debugger does not automatically
stop in main. To have the debugger stop, set a breakpoint
in your Java code.
If you have a project that contains
the file(s) that you want to launch for debug, you can complete these steps
to quickly launch a debug session for them:
- Open a workbench perspective that offers the launch/debug/run action
set and a project file Navigator view (such as the Java or
Resource perspectives).
- In a project file Navigator view, select the
file. This file must be a Java class which contains the main method.
- Perform one of the following tasks:
- Choose Run > Debug As > Java and Mixed Language Application from
the workbench menu bar.
- Select the workbench toolbar Debug push button
down arrow and choose Debug As > Java and Mixed Language Application from
the menu.
- Right-click the file and choose Debug As > Java and Mixed Language
Application from the pop-up menu.
When you launch a debug session using a launch shortcut, the debugger
creates and saves a launch configuration for the launch (the name of the launch
configuration is based on the file(s) chosen for the launch action). This
launch configuration can be reused or edited - or used as a Run launch
configuration.