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
- Open a Java Perspective if one is not currently available:
Click .
- Click the down arrow next to the debug icon on the workbench menu bar.
- Select Debug.
- In the Launch configurations, click Java application
in IBM i server.
- Click New to create a configuration of the
selected type.
- Optional: Give the configuration a name.
- 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.
- 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.