Re: Debugging with JDEE

"Jeffrey Phillips" <[email protected]>
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Port 80 is TCP port of your webserver...  You are using TCP port 9000
in your command line for debugger to listen where you have this in
your email:

    address=9000

The webserver daemon and debugger listeners must be different, or else
you won't be able to test webserver and debug on the other.

See this for full debug options and descriptions:

http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html

For j2ee debugging, I normally don't "start" the server  through jdee
like you appear to be doing.  While you can do this, you instead might
want to add the -Xdebug ... options to the start scripts JAVA_OPTS.
Tomcat you can simply set two environment variables, then
start in jpda mode.  For tomcat read this:

http://tomcat.apache.org/faq/development.html#rd

None of this really doesn't have much to do with JDEE, so it may be
better to take off the mailing  list.

On 6/25/06, Peter Su <[email protected]> wrote:
>
> Jeffrey Phillips:
>         This is complementarity of last mail. In HelloWorldServlet.java, i set (jde-run-vm-args "-Xdebug -Xrunjdwp\:transport\=dt_socket,server\=y,suspend\=n,address\=9000), and jde-run Bootstrap.java, but when i attach a port(my http port is default 80,by executing jde-bug-attach-local-host) ,it always say :
>
> *** Debugger Output for Process 80(1) ***
>
> Error: cannot attach to process on port 80 of local host.
>  Reason: Exception during command execution: jde.debugger.JDEException: INTERNAL ERROR: an attempt was made at deregistering a valid debugger. The debugger must be shut down first..
>
>
> so i execute jde-debug on Bootstrap.java directly, and setting breakpoint on HelloWorldServlet.java , it's works.
> WHY? i guess that problem may be here.
>
>      thanks.
>      Peter
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.