File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java remote debugging

 
a sq
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to debug remote java application from eclipse, but getting this exception ?

Failed to connect to remote VM. Connection timed out.
org.eclipse.jdi.TimeoutException
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"a sq", please check your private messages for an important administrative matter.
 
jammy chen
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you have startuped the remote java application vm?

You must add some additional paramters which follow after java command to let your remote debug is available, for axample: java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 AdminMain, I need to point the 5005 is your port which need build communitcate on it, then you also need to config the remote configration on eclipse, please choose the attach mode. at finnally only is run the vm it will wait the any client with it build socket communication, I think this is no way appear TimeoutException, if also you should check your firewall keep it colsed try again.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic