I know how to remote debug a java application on a machine where it already exists, but does anyone know of a solution that can launch from a local workspace (e.g. eclipse), transfer any code in the local classpath to a remote or virtual machine, execute it there and connect a remote debugger, all in one step? I expect some kind of server would need to run on the remote machine to accept class-files and execute them.
I once did something similar with JUnit, transfering local testcases to a remote machine via RMI and executing them there, transferring the results back to my eclipse. Because those testcases are JUnit-tests it was easy to integrate this with the JUnit-launcher and -tools from eclipse, but for debugging the whole application I suspect it to be a bit more complicated.
I would like to ask if there are any solutions for this or if anyone has done this before and would point me in the right direction.
There is something similar for VMWARE Workstation, but I develop on a Mac and it is not avaliable in Fusion.