You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dick Brooks <di...@tech-comm.com> on 2003/04/29 21:10:16 UTC

Debugging servlets in Tomcat using eclipse

I've been trying to use eclipse to remote debug a servlet, but have been
unsuccessful. The config is Tomcat 4.1.24 and eclipse 2.1 running on Windows
2k Pro.

I am able to successfully attach to Tomcat from eclipse using jpda and can
see the running threads in the debug window, however I'm not able to set any
breakpoints in the source code, using the normal method (right click on
margin/add breakpoint). Does anyone know what may be causing this behavior,
and more importantly, how to solve the problem?

What's interesting is the source level debugging works fine between eclipse
and JBoss - strange.

Thanks in advance,

Dick Brooks
Independent Consultant
B2B Integration and Cyber Security
Mobile:602-684-1484
eFax:240-352-0714



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


SOLVED: RE: Debugging servlets in Tomcat using eclipse

Posted by Dick Brooks <di...@tech-comm.com>.
The problem was related to the way I created the project in eclipse. I
deleted the project and recreated it and was able to interact with the
debugging session with no problem.

The main difference between the original and re-created project was java
package object for the servlet code, which didn't exist in the original
project.

Thanks,

Dick Brooks
Independent Consultant
B2B Integration and Cyber Security
Mobile:602-684-1484
eFax:240-352-0714


-----Original Message-----
From: Dick Brooks [mailto:dick@tech-comm.com]
Sent: Tuesday, April 29, 2003 12:10 PM
To: Tomcat Users List
Subject: Debugging servlets in Tomcat using eclipse



I've been trying to use eclipse to remote debug a servlet, but have been
unsuccessful. The config is Tomcat 4.1.24 and eclipse 2.1 running on Windows
2k Pro.

I am able to successfully attach to Tomcat from eclipse using jpda and can
see the running threads in the debug window, however I'm not able to set any
breakpoints in the source code, using the normal method (right click on
margin/add breakpoint). Does anyone know what may be causing this behavior,
and more importantly, how to solve the problem?

What's interesting is the source level debugging works fine between eclipse
and JBoss - strange.

Thanks in advance,

Dick Brooks
Independent Consultant
B2B Integration and Cyber Security
Mobile:602-684-1484
eFax:240-352-0714



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org