This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Remote Debugging with Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Remote Debugging with Eclipse" Watch "Remote Debugging with Eclipse" New topic
Author

Remote Debugging with Eclipse

SV Subrahmanyam
Greenhorn

Joined: Mar 14, 2005
Posts: 5
Platform :Win2000 Jdk 1.5 Eclipse 3.02 Tomcat 4.1

When I try to debug the application with eclipse on Tomcat server started with jpda start ,I get 'Failed to connect to remote VM .Connection refused'
Have checked these options
1.Changed Catalina.bat for dt_socket and 8000 (JPDA_TRANSPORT and JPDA_ADDRESS)
2.Changed the JVM option in eclipse for -server -Xdebug and starting tomcat within eclipse via the tomcat plugin

Regards
SV
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

Use the NETSTAT command to make sure that the app is open for debugging on port 8000.

Also, you should generally set the flag that causes the app to pause on startup. If your app comes up, runs and terminates before you can connect the debugger you'll have this problem.


Customer surveys are for companies who didn't pay proper attention to begin with.
SV Subrahmanyam
Greenhorn

Joined: Mar 14, 2005
Posts: 5
The Tomcat when started with the JPDA start option is not listening on port 8000 .the same canges made will work on a linux system Is there aything special that needs to be set to work with windows
 
Don't get me started about those stupid light bulbs.
 
subject: Remote Debugging with Eclipse
 
Similar Threads
web service deployment on shared hosting tomcat server
Servlet as an rmi client
Remote Debugging in Eclipse
Debugging Servlets in Eclipse
remote debug hot code replace