andrew wrote:
I'm trying to run the java debugger on my Mandrake 9.0 machine,
and for some reason, when I try to use the java debugger, either using ddd
or the command (for example) % jdb Look locsS.txt and then
[snipp]
/usr/local/j2sdk1.4.2/jre/bin/java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=pc162159.napier.ac.uk:33006,suspend=y Look locsS.txt
have you ever tried to run the command above without the JDB? jdb is in your case doing nothing else than starting a jvm in debug mode (line above) and to attach to it - all in one step, nice, hugh? :)
so, what you can do is to run (replaced the hostname with localhost)
$ /usr/local/j2sdk1.4.2/jre/bin/java -Xdebug -Xnoagent \ -Djava.compiler=NONE \ -Xrunjdwp:transport=dt_socket,address=localhost:33006,suspend=y \ Look locsS.txt
and after startup to run
$ jdb -attach localhost:33006 ....
AFAIR there was also a dbgtrace command line option for jdb. try this too. i am sorry, but i cannot check the correct syntax. currently i dont have a system with an installed java.
cya, gottfried -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
