Debugging Java programs remotely

You can debug an IBM® i Java™ program using the Java debugger for IBM i, available from the IBM i launch configuration.

Before you begin

You need to export your class files, but not your source. You can debug directly from the source in your workspace.

About this task

To debug your Java program using the remote IBM i launch configuration:

Procedure

  1. Open a Java Perspective if one is not currently available: Click Window > Open Perspective > Java.
  2. Click the down arrow next to the debug icon on the workbench menu bar.
  3. Select Debug.
  4. In the Launch configurations, click Java application in IBM i server.
  5. Click New to create a configuration of the selected type.
  6. Optional: Give the configuration a name.
  7. Under the Main tab, fill in the name of the project and the name of the Main class in your project. Also specify the working or home folder on the IBM i server. This is the IFS folder containing the remote Main class (including package, if applicable) which you specified in the Main Class field.
  8. Click Debug.

Results

The Java debugger for IBM i launches.

What to do next

After you define a configuration, it appears as a shortcut in the down-arrow menu.

Feedback