You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Michalski, RafaĆ" <RM...@eragsm.pl> on 2001/04/03 16:00:04 UTC
attaching jdb
I cannot attach the standart debugger to Tomcat.
In tomcat.sh, the all important line reads:
$JAVACMD -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n $TOMCAT_OPTS
-Dtomcat.home=${TOMCAT_HOME} org.apache.tomcat.startup.Tomcat "$@" &
Trying to attach with jdb
jdb -attach 8000
I get the following error:
Internal exception: java.lang.NullPointerException
at
com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:138)
at com.sun.tools.example.debug.tty.Env.init(Env.java:68)
at com.sun.tools.example.debug.tty.TTY.main(TTY.java:923)
With the default suspend=y option,
I _can_ attach the debugger.
I would be partially satisfied
knowing whether this is a Tomcat problem
or a general problem with remote
debugging in Java 1.3.
Not working, for example.
Greats
Rafal.
@^^ -
< // \\
\___/
/||\
^ ^^ ^