This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - RMI debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - RMI debugging" Watch "Eclipse - RMI debugging" New topic

Eclipse - RMI debugging

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16901

Anyone got any good tricks for debugging RMI servers in Eclipse? I have no problems with RMI itself, but I'm using RMIC to launch the server in its own JVM on demand and that JVM's not connected to the Eclipse debugger.

Customer surveys are for companies who didn't pay proper attention to begin with.
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
Have you tried starting Java with debugging turned on:


And then using remote debugging in Eclipse? (Run->Debug...->Remote Java Application->New)

I've not used RMI but it sounds like that might help.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16901

The only real problem with that is that the RMID server is spawning a JVM for the service to run in, and I can't tell off the top of my head where I'd put the startup parameters for the spawned JVM.

Fortunately, I was able to peel the top-layer code out so that the RMI server-side code is now just a facade that delegates to a "normal" Java class that I can launch via a main() method.
wood burning stoves
subject: Eclipse - RMI debugging
jQuery in Action, 3rd edition