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:
- Compile the Java source code specifying the -g option, as shown in this example:
javac -g MyServlet.javaDeploy your enterprise application in the application server if you have not done so already.
- 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:
- Start the administrative console.
- Expand Servers and click the Application Servers link.
- Click the link for the application server running the code you wish to debug.
- Select the Configuration tab.
- Scroll down to the Additional Properties section and click the Process Definition link.
- In the Additional Properties section, click the Java Virtual Machine link.
- 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.- Click the OK button.
- Click the Save near the top of the page. On the resulting page, click the Save button.
If the application server is running, stop it.
Start the application server.