Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Debugging Remote Applications

Thread view: 
Christian - 29 Jun 2007 12:00 GMT
Hello

I am often programming jse applications that I can only test in large
numbers.. so I use a small cluster of computers as testenviroment..

Now I often find myself in the bad situation that debugging only works
by viewing logfiles..

But is there any chance for me with java to get a debugging view like in
eclipse for local apps also for a remote application.. with
breakpoints/breakpoints on exceptions  and introspecting the state of
the objects ?

Christian
Thomas Fritsch - 29 Jun 2007 12:47 GMT
> Hello
>
[quoted text clipped - 10 lines]
>
> Christian
You have start the Java process (the one to be debugged) with some more
options. Instead of starting it with
 java ...
you have to start it with
 java -Xdebug -Xnoagent -Djava.compiler=NONE \
      -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345 ....
This will start your Java process as usual, but the JVM will also listen for
a debugger connection on port 12345.

In Eclipse you have to create a Debug configuration ("Remote Java
application") with the host name and the debug port number ("12345" from
the example above).
Later, when you want to debug the already running Java process, you have to
launch this Debug configuration.

You may also want to google for "Java remote debugging".

Signature

Thomas



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.