views:

40

answers:

3

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.

+1  A: 

I think this link will give you the answer ... when it comes back. Alternatively a search in Eclipse Help for "remote debug" should bring up the same page.

For all of the gory details about how Java debugging works, refer to the JDPA page.

Stephen C
+1  A: 

Here is a guide for remote debugging.

Romain Hippeau
+1  A: 

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:jdwp option. 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 -Xdebug and -Xrunjdwp options are used.

Pascal Thivent