I have an application written in Java to run on Linux. I’m developing in Eclipse under windows. I would like to run the code on the Linux box and debug it on the Windows one remotely. I’ve found some information about how to do so, but it’s pretty sparse. Does anyone have (or can point to) a complete explanation of the process?
Any help would be appreciated.
The Java Platform Debugger Architecture (JPDA) supports remote debugging. First, you need to enable remote debugging of your application by loading the JDWP agent for debugging into your application’s JVM. Starting from Java 5.0, use the
-agentlib:jdwpoption. See Sun VM Invocation Options) for all the details and examples1.Then, configure Eclipse to connect the debugger (check this article).
1 For releases prior to 5.0, the
-Xdebugand-Xrunjdwpoptions are used.