Using the debug launch shortcuts

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:

  1. 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).
  2. In a project file Navigator view, select the file. This file must be a Java class which contains the main method.
  3. 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.

Related tasks
Starting a debug session
Creating a new Java and mixed language debug launch configuration

Feedback