by, 05-21-2011 at 10:31 PM (1160 Views)
Ever wanted to launch a Java program from a network computer and debug it from the workstation running the Java platform? Example scenario is that you have an a J2EE application deployed on a dedicated server and you need to do debugging on you machine. This can be done if Java VM that supports this feature.
To do this, launch the program in debug mode on the remote machine. It means that the program on server will wait for a connection from your debugger. Now start the debugger with remote launch configuration. You will need to specify the address and port of the remote computer. Eclipse supports this. So you web server on which you have deployed your application should be able to launch the program in debug mode. It can be done on Glassfish and JBoss.