Other debuggers

Starting in OS/400 release V5R2M0, the iSeries IBM Developer Kit for Java Version 1.2 and higher contains support for the Java Platform Debugger Architecture (JPDA). This support allows any remote debugger, which uses the Java Debug Wire Protocol (JDWP) to debug Java code running in WAS.

Perform these steps to enable your enterprise application and application server for debugging with a remote debugger:

  1. Compile the Java source code specifying the -g option, as shown in this example:
    javac -g MyServlet.java
  2. Deploy your enterprise application in the application server if you have not done so already.

  3. Enable the application server running the code you want to debug for remote debugging. To enable the application server for remote debugging, follow these steps:
    1. Start the administrative console.
    2. Expand Servers and click the Application Servers link.
    3. Click the link for the application server running the code you wish to debug.
    4. Select the Configuration tab.
    5. Scroll down to the Additional Properties section and click the Process Definition link.
    6. In the Additional Properties section, click the Java Virtual Machine link.
    7. Check the Debug mode checkbox.
      Generally you do not need to modify the Debug arguments field. However, if you are debugging code running in multiple application servers on the same iSeries server you may need to modify the address argument so that it is unique for each application server. This argument specifies the debug port value. It is the last argument in the Debug Arguments field.
    8. Click the OK button.
    9. Click the Save near the top of the page. On the resulting page, click the Save button.
    10. If the application server is running, stop it.

  4. Start the application server.