g-Solutions

Java Remote debugging

The eclipse Remote Java Application allows developers to debug their code on remote JVM instances. Developers can set breakpoints in their local Eclipse environment. Developer can step through code executed on the server inside of their local eclipse environment. Note that the local version of the code must have previously been compiled and deployed on the remote JVM instance.

Each JVM instance must be started with a unique debugger port. The following JVM argument must be added to enable remote debugging.

-Xrunjdwp:transport=dt_socket,address= ,server=y,suspend=n

The Eclipse Remote Java Application debugger must be provided with the IP-address/host and debug-port of the remote JVM instance.

Use the Eclipse Debug Configurations to setup a remote debugger;

Right Click on Remote Java Application then click on the New menu item.

Use the browse button to select the appropriate Eclipse project to debug and enter the debug host/port. Then click the Debug button.