wood burning stoves
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
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: 17280

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.

An IDE is no substitute for an Intelligent Developer.
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: 17280

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Eclipse - RMI debugging
It's not a secret anymore!