Remotely debug your app in Eclipse
Levent Gurses has a nice blog entry on Remote Debugging with Eclipse. I was able to use his instructions a couple months ago to attach to a remote instance of WebLogic (8.1 SP4) to debug an application. The beauty of his instructions is I had it all working in about 5 minutes. Yesterday I realized you could use the settings in *any* application server, and remotely debug it - or at least you should be able to. Today I noticed he added instructions for Tomcat and JBoss. Good stuff - thanks Levent!
Here's the settings you need in your startup script - just in case Levent's blog is down the next time I need this info.
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044
This is insulting, but most of the people have no clue about this, even so it is been in Java almost from the beginning and all Java IDE support it.
http://jroller.com/page/eu?entry=debugging_any_application_with_eclipse
Posted by eu on December 02, 2005 at 07:39 PM MST #
Posted by D on December 02, 2005 at 10:17 PM MST #
D - tests my friend, lots and lots of tests. ;-)
Posted by Matt Raible on December 02, 2005 at 10:21 PM MST #
Posted by Jeff Sheets on December 02, 2005 at 11:15 PM MST #
Posted by Matt Raible on December 03, 2005 at 12:12 PM MST #
Posted by Joe on December 03, 2005 at 01:36 PM MST #
Posted by Marc Logemann on December 03, 2005 at 08:48 PM MST #
Posted by Sanjiv Jivan on December 04, 2005 at 03:06 PM MST #
Posted by James Lee on December 05, 2005 at 02:59 AM MST #
Posted by Bill Dudney on December 05, 2005 at 04:47 AM MST #
Posted by Rene Gielen on December 05, 2005 at 09:39 AM MST #
Error [2] in connect() call! err:: No such file or directory Socket transport failed to init. Transport dt_socket failed to initialize, rc = -1. FATAL ERROR in native method: No transports initialized
Greateful for any information regarding the issue
BR Pasi
Posted by Pasi Shemeikka on December 28, 2005 at 01:09 PM MST #
Posted by dragondad on January 06, 2006 at 04:56 PM MST #
Posted by PS on January 25, 2006 at 12:04 AM MST #
Posted by Poh Soon on January 26, 2006 at 05:29 PM MST #
Posted by Ryan on June 27, 2006 at 03:20 AM MDT #
when i sart to Remotely debug your app in Eclipse
i got this error
failed to connect to Remotr VM
what does this mean?
Note: my IDE is MyEclipse
Thnaks&Reagrds
Posted by essam abdel aziz on July 04, 2006 at 07:46 AM MDT #
Remote Debugging with Eclipse (Jacoozi Article)
Posted by Levent Gurses on September 28, 2006 at 06:36 PM MDT #
First I added the following lines to "startup.bat":
SET JPDA_ADDRESS=8000 SET JPDA_TRANSPORT=dt_socket
Then I added the "jpda" keyowrd before the start parameter.
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
Everything looks fine this far... But it didn't work!
THE SOLUTION: There was simply a space character after the "8000"!!
The command assembled within the script was:
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000 ,server=y,suspend=n
(There was a FU..... space behind the "8000"...)
After removing the space the command was correct: java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
Maybe someone should change the "catalina.bat" to make it remove unnecessary spaces with in parameters!?
Posted by Michael on November 13, 2006 at 07:59 PM MST #
www.jacoozi.com comes up as a website for sale?
And using Matt's startup string return VM connection refused.
Any ideas?
Posted by David Brown on November 28, 2012 at 04:25 PM MST #