-
1. Re: Remote debugging via SSH?
maxandersen Oct 18, 2012 9:27 AM (in response to jope)1 of 1 people found this helpfulsimply use plain normal eclipse java remote applicaiton debugging.
if your remote server is already running with the debug flags that should all be doable.
-
2. Re: Remote debugging via SSH?
jope Oct 19, 2012 9:55 AM (in response to maxandersen)Well, sort of. If I open port 8787 in the server's firewall and run the standalone.sh script manually, yes, remote debugging over port 8787 works without any further authentication from the debugging client's side. However, when I start the server using the "Start the server" button in my local JBoss Tools, my custom startup options in the remote standalone.conf file get ignored, so the JBoss isn't started in debug mode.
This leaves me with two questions:
1. Which run configuration gets applied when you start a JBoss AS remotely over SSH from local JBoss Tools?
2. Is there a secured way to debug the remote server, like over SSH or HTTPS or at least protected by username and password?
-
3. Re: Remote debugging via SSH?
dgolovin Oct 19, 2012 4:30 PM (in response to jope)J. Koch wrote:
1. Which run configuration gets applied when you start a JBoss AS remotely over SSH from local JBoss Tools?
JBoss Tools server adapter doesn't use any .config file form bin folder, it just generates VM parameters in LocalJBoss71ServerRuntime.getDefaultRunVMArgs(IPath serverHome) and then run server with java using those parameters on local or remote host. Parameters can be changed through editing launch configuration for server.
J. Koch wrote:
2. Is there a secured way to debug the remote server, like over SSH or HTTPS or at least protected by username and password?
There is an article Remote Java Debugging via SSH Tunnel Only Works if Local and Remote Ports are Identical. It could help, considering you added missing parameters to command used to start serer on remote host (note, I'm just guessing and haven't tried that myself).
-
4. Re: Remote debugging via SSH?
maxandersen Oct 20, 2012 3:37 AM (in response to jope)1 of 1 people found this helpfulI've done plenty of remote debugging over ssh with portforwarding on openshift - not sure if I always had local and remote port being the same though; sounds weird if it has to be.
Just setup ssh portforwards and use remote debugging to connect to localhost:<forwarded port>
-
5. Re: Remote debugging via SSH?
jope Oct 30, 2012 12:53 PM (in response to maxandersen)OK, I have SSH port forwarding set up with local and remote port being identical. It works nicely, so I didn't try out different ports yet. Thank you very much for this advice, this is just what I need.
I had a hard time finding the launch configuration that gets applied when the remote server gets started through JBoss Tools, so I'll post a screenshot just in case somebody else with the same issue stumbles upon this thread.
Thank you both for the quick and helpful replies! It's too bad I can mark only one answer as correct, since actually the combination of all three answers allowed me to accomplish what I needed.