views:

118

answers:

4

When attaching the debugger in an IDE (IntelliJ or Eclipse) to a JVM running in another continent (london to new york) the lag is unbearable. I've waited in excess of 10 minutes for IntelliJ to populate my stackframes and fill out objects before giving up when hitting a breakpoint. (note: ive never seen a fully populate debug state when doing this!) This makes remote debugging using an IDE impossible!

I am aware of the jdb tool, which doesn't experience any such lag issues. I imagine because it is more fine-tuned to specific data retrievals from the VM rather than populating each stack frame and all accessible values.

Is anyone aware if there is an intermediate ground? I find jdb cumbersome to use - I would love to see a UI (built atop of jdb) that did not experience the lag issues of an IDE. Does anyone know if such an application exists?

Does anyone know of other techniques to debug remote VMs executing thousands of miles away?

+1  A: 

It's probably got more to do with the bandwidth of your connection than anything to do with the debugger.

Rulmeq
You can't do much when light can only travel from there and back in 500ms
Earlz
+3  A: 

Buy something like an linode or other VPS that is running on said continent(or if you have any friends with spare bandwidth living on the continent).

Setup X-Forwarding, and run your IDE on the VPS connecting to it from your home with ssh.

Hopefully the graphical X lag is more bearable(hint: yes) than the debugging lag you talked about.

Earlz
Graphical X can be pretty painful too (compression sometimes helps, but mostly not). VNC can be a little better, but still isn't great. The Sun SSGD or the Microsoft RD protocols/methods are a drastic improvement if you can use them.
Brian Knoblauch
I haven't actually used X for long distances, but I know VNC isn't bad when connecting to the other side of the US.. So long as you have a reasonable resolution and such.
Earlz
A: 

I was using the IDE IntelliJ 7.0.5 and the debugging was awful. I have since upgraded to IntelliJ 9 and the lag seems to be bearable.

I guess IntelliJ 7.0.5 was doing something 'interesting' when talking to the remote VM.

Jack Griffith
A: 

Your problem isn't insolvable: I do the reverse (New York to London) using Eclipse. It isn't sprightly, but it's nowhere near unbearable, and nothing like what you describe.

I'd ask three questions:
1) Are you absolutely tied to IntelliJ?
2) Do you have copies of the dependent jars locally?
3) How's your bandwidth overall? How does a remote desktop perform? How about editing a file over a network share?

CPerkins
Jack Griffith