• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is remote debugging in Eclipse Genymede?  RSS feed

 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi members,

Can anybody give me better explanation of Remote Debugging in Eclipse ? Please also provide me some useful links that can helpful, if possible !

Is it possible to debug an executable jar file?

In fact I have a Java Swing based application .It runs fine when I run it in my Eclipse IDE . But when I execute it execute independently. It got stuck somewhere !
I want to track that point where and what is the execption is ?

Any help would be appreciable !


Thanks in advance !

 
Tim Holloway
Bartender
Posts: 18781
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JVM has a debugger built into it. That means that ANY java app can be debugged - JAR, WAR, applet, servlet, whatever.

The mechanism works courtesy of a standard debugging protocol and a network debugging port. In other words, the JVM acts as a debugging server. You define the port number when you start the JVM. One popular port number is 8000, but there's no standard port. You can use any one you like, as long as no other app is using it.

Remote Debugging is the process of connecting a remote debugging client (such as Eclipse) to the debugging server. One of the options that the JVM has is that it can either halt the application on startup and wait for the client to connect and resume execution, or it can start in the normal way and the client can connect (and disconnect) any time it wants to.
 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim !

Sorry for replying late. Meanwhile, I found a very nice tutorial for Eclipse Remote Debugging. It is really nice for novice .

http://www.ibm.com/developerworks/opensource/library/os-eclipse-javadebug/index.html?ca=drs-tp5008

Thanks once again !
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!