Debugging -- Source Code Soup [message #65564] |
Tue, 17 May 2005 21:42 |
Eclipse User |
|
|
|
Originally posted by: rbronson1976.yahoo.com
Hi all,
I'm working on a web project that uses Tomcat. I want to be able to
trace into the Tomcat source code and, for the most part, I can, but
I'm seeing something very weird and inconsistent.
I have set up a "User Library" called "Tomcat" which contains the
necessary Tomcat JAR files. I also associate the Tomcat source code ZIP
file with the JAR files.
I am able to set working breakpoints in my code *and* in the Tomcat
code. The breakpoints work and I'm able to trace through the source
code (mine and Tomcat's).
Now here's where it gets weird.
Let's say I have this line of code in a class that *I* wrote:
ServletResponse r = null;
If I right-click on "ServletResponse" and select "Open Declaration"
from the menu, I am taken to the source code for the ServletResponse
class. That's perfect, just what I want.
Now, as I'm debugging, eventually I trace into a method with this
signature:
include(ServletRequest request, ServletResponse response)
This method is in org.apache.catalina.core.ApplicationDispatcher. If I
right-click on "ServletResponse" in the method signature and I select
"Open Declaration" from the menu, I would *expect* to be taken to the
source code for ServletResponse. Instead, I get a message on the
Eclipse status bar that reads, "Current text selection does not resolve
to a Java element".
Why am I not taken to the source code for ServletResponse? It works
just fine when the reference to ServletResponse was within *my* code.
Would anyone have an explanation for this?
|
|
|
Powered by
FUDForum. Page generated in 0.07453 seconds