Debug Java applications remotely with Eclipse

Discussions

News: Debug Java applications remotely with Eclipse

  1. Debug Java applications remotely with Eclipse (9 messages)

    You don't need to debug Java applications on just your local desktop. Learn how to spread around your debugging using different connection types that make up remote debugging. This article explains the features and examples that show how to set up remote application debugging.

    Threaded Messages (9)

  2. Why don't mods ban above user he is spamming all over the site.
  3. Perhaps they have re-evaluated the value of the site and found the it's not worth the time.
  4. Video tutorial[ Go to top ]

    If you want to SEE how to do this you should watch this video: http://java2jee.blogspot.com/2008/11/video-tutorial-remote-debugging-of-java.html I hope that helps. Cheers! Przemek
  5. Re: Video tutorial[ Go to top ]

    Thank you Przemek. I was doing the same, but rather than running a batch file. I always set the variable in the environment variables. So whenever, I need to switch to other environment I have to change every time (switch from tomcat to jboss).
  6. Remote webstart debugging[ Go to top ]

    Would anybody know the flags for the javaws launcher to run the application with its debug port open? I have attempted to run like this C:\java\jdk1.6.0-debug\jre\bin\java.exe -Xdebug -Dnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8118 -classpath "C:\java\jdk1.6.0-debug\jre\lib\javaws.jar;C:\java\jdk1.6.0-debug\jre\lib\deploy.jar" com.sun.javaws.Main "http://almeria:8080/fbi-training/app/fbi.jnlp" But the com.sun.javaws.Main seems to fork new process for the webstarted application so I can connect Java process on the desired debug port but it is not the one I want to ;-(.
  7. Re: Remote webstart debugging[ Go to top ]

    Vitek, Run your application from the command line like this: 1. First export the following environment variable set "JAVA_TOOL_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8118" 2. Use the regular web start launcher javaws http://almeria:8080/fbi-training/app/fbi.jnlp Your application will wait for the debugger to attach on port 8118. Another option is using the StackTrace tool from http://www.adaptj.com/. It can attach a BeansShell console to the target application, set breakpoints, and step through the bytecode without starting the VM in debug mode. It is much harder to use than the Eclipse debugger.
  8. Re: Remote webstart debugging[ Go to top ]

    Really do we need a how to on remote debugging from eclipse ???? This should be basic knowledge for a java developer (The remote debugging part). M2C
  9. Re: Remote webstart debugging[ Go to top ]

    You're right - this should be basic knowledge for a Java developer but how the hell do you imagine people should learn it? Are all Java developers born with this knowledge? Or should they learn it in a primary school? Someone should show and teach how to do this and thanks to some people others can use this knowledge and apply it. Cheers!
  10. Thank you[ Go to top ]

    Ray, Thank you very much your approach did work perfectly. Vitek