File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
attach source code to the remote debug
Joined: May 10, 2011
May 25, 2011 08:15:02
I'm running a
application in a remote site, and I would like to debug the application. I'm using jdb, and, due to network architecture, I can only use jdb do debug in text-mode.
To debug in text-mode I use the command:
jdb -attach remotesite:port.
At this point this is ok. Now I would like to attach the source code to the jdb. I tried the command
jdb -attach remotesite:port ~/src/org/path/file.java
to attach the source code to the remote debug to. But it doesn't work.
In jdb, I try the command
but it doesn't work either.
How can I attach the source code to the remote debug?
Paul Santa Maria
Joined: Feb 24, 2004
May 25, 2011 09:12:15
I hate to say it, but I honestly think your best bet is to set up your environment so that you can use something like vncserver to debug locally.
At a minimum, you might need to copy your source locally. At which point you should be able to use jdb "-sourcepath xyz:abc:123".
Some of these links might help:
Paul M. Santa Maria, SCJP
I agree. Here's the link:
subject: attach source code to the remote debug
how to debug J2ee application ?
Debugging a servlet program
debugging socket communication in eclipse
Java Debugger security question
How to debug with WAS 5.0
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015