-
Debug Java applications remotely with Eclipse (9 messages)
- Posted by: Jayne Malasko
- Posted on: December 16 2008 16:52 EST
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)
- Re: Debug Java applications remotely with Eclipse by J Dev on December 17 2008 00:26 EST
- Re: Debug Java applications remotely with Eclipse by Time PassX on December 17 2008 08:03 EST
- Video tutorial by Przemyslaw Bielicki on December 17 2008 02:23 EST
- Re: Video tutorial by Shahzad Masud on December 17 2008 03:10 EST
- Remote webstart debugging by Vitek Cvachoucek on December 17 2008 07:35 EST
- Re: Remote webstart debugging by Ray Foster on December 17 2008 15:38 EST
-
Re: Remote webstart debugging by Marc de Kwant on December 18 2008 02:46 EST
- Re: Remote webstart debugging by Przemyslaw Bielicki on December 18 2008 04:45 EST
- Thank you by Vitek Cvachoucek on December 18 2008 02:56 EST
-
Re: Remote webstart debugging by Marc de Kwant on December 18 2008 02:46 EST
- Re: Remote webstart debugging by Ray Foster on December 17 2008 15:38 EST
-
Re: Debug Java applications remotely with Eclipse[ Go to top ]
- Posted by: J Dev
- Posted on: December 17 2008 00:26 EST
- in response to Jayne Malasko
Why don't mods ban above user he is spamming all over the site. -
Re: Debug Java applications remotely with Eclipse[ Go to top ]
- Posted by: Time PassX
- Posted on: December 17 2008 08:03 EST
- in response to J Dev
Perhaps they have re-evaluated the value of the site and found the it's not worth the time. -
Video tutorial[ Go to top ]
- Posted by: Przemyslaw Bielicki
- Posted on: December 17 2008 02:23 EST
- in response to Jayne Malasko
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 -
Re: Video tutorial[ Go to top ]
- Posted by: Shahzad Masud
- Posted on: December 17 2008 03:10 EST
- in response to Przemyslaw Bielicki
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). -
Remote webstart debugging[ Go to top ]
- Posted by: Vitek Cvachoucek
- Posted on: December 17 2008 07:35 EST
- in response to Jayne Malasko
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 ;-(. -
Re: Remote webstart debugging[ Go to top ]
- Posted by: Ray Foster
- Posted on: December 17 2008 15:38 EST
- in response to Vitek Cvachoucek
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. -
Re: Remote webstart debugging[ Go to top ]
- Posted by: Marc de Kwant
- Posted on: December 18 2008 02:46 EST
- in response to Ray Foster
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 -
Re: Remote webstart debugging[ Go to top ]
- Posted by: Przemyslaw Bielicki
- Posted on: December 18 2008 04:45 EST
- in response to Marc de Kwant
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! -
Thank you[ Go to top ]
- Posted by: Vitek Cvachoucek
- Posted on: December 18 2008 02:56 EST
- in response to Ray Foster
Ray, Thank you very much your approach did work perfectly. Vitek