Starting a debug session for a previously launched application

You can debug with an existing launch configuration via the launch history, your favorite debug configurations, or the Debug launch configurations dialog box.

About this task

You can also choose to relaunch the launch configuration that you used last.

Using the launch history or favorite debugger configurations to start

About this task

The launch history is a list of the most recent debug launches. Favorite debug configurations are launch configurations that you set to be favorites.

When you are creating a launch configuration, you can choose to have it added to the favorite debug configurations list via the Common tab in the Debug launch configurations dialog box. You can also modify favorite debug configurations and the launch history in the workbench preferences where, in the Preferences dialog box, selecting Debug > Launch History will open the Launch History page. In this page, you can set the maximum number of launch configurations that will appear in the launch history.

In the workbench, the launch history and favorite debug configurations appear together when you select the down arrow next to the Debug push button in the toolbar ( Toolbar debug push button) or when you choose Run > Debug History from the workbench menu bar. If you have set favorite debug configurations and a launch history exists, then the launch history and favorite debug configurations will appear together with a separator in between and favorite configurations listed on top. If there are no set favorite debug configurations, then only the launch history will be displayed. If there is no launch history (or if you have chosen to remove all items from the launch history), then only the favorite debug configurations will be displayed.

To relaunch an entry in the launch history or favorite debug configurations list, select it from the list that appears when you select the workbench toolbar Debug push button menu or when you choose Run > Debug History from the workbench menu bar.

Starting by means of the Debug launch configurations dialog box

Procedure

  1. In a workbench perspective that offers the launch/debug/run action set (such as the Debug perspective), do one of the following:
    • Select Run > Debug from the workbench menu bar to open the Debug launch configurations dialog box.
    • Select the workbench toolbar Debug push button and choose Debug from the menu. This will open the Debug launch configurations dialog box.
  2. In the Debug launch configurations dialog box, select the launch configuration that you would like to use. You may need to expand the launch configuration type node to find the launch configuration.
  3. If all information mandatory to the launch configuration is valid, you can launch the debug session by doing one of the following:
    • Double-click the launch configuration.
    • Click Debug (the Debug push button is enabled only if all information mandatory to the launch configuration is valid).

Relaunching

About this task

To debug with the launch configuration that was last used, you can relaunch by doing one of the following:

Procedure

Results

Depending on the debugging session start-up mode or language under debug, restarting a program will cause the following:

  • If you used the i Job launch configuration to start the debugging session, a message prompts you to call the program again in your IBM® i job before the debugging session restarts.

Feedback