Bug 215526

Summary: JSP debugger steps into jsp servlet rather than jsp after an @include call
Product: [Eclipse Project] JDT Reporter: Mi Amidot <miamidot>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: darin.eclipse, thatnitind
Version: 3.3.1Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mi Amidot CLA 2008-01-16 12:27:18 EST
[Build ID: M20071023-1652]


Let's say we have a file /watch.jsp
with the following contents

===========================================
<% String v="NYJEbJ9fNlY" %>
<li> http://www.youtube.com/watch?v=<%=v%>

<%@include file="header.jsp" %>

<li> http://www.youtube.com/watch?v=NYJEbJ9fNlY
=============================================

Let's say debugger is now paused at first <li>.
We step over it to reach the @include header.jsp call.
We step into header.jsp.
We step out of header.jsp.
We expect debugger to step back into /watch.jsp but no, it does not. Debugger attempts to step into watch_jsp.java, which is the jsp-generated servlet src of /watch.jsp.
Then the debugger croaks, "Unable to locate source" because the debugger does not even know where in Tomcat the jsp-generated src is located.


I will enter the following into another bug report:
You will also notice that if you hovered mouse over <%=v%>, hoping for a hint on the value of v, the hint value is
"watch_jsp(HttpJspBase).service(HttpServletRequest, HttpServletResponse) rather than the value "NYJEbJ9fNlY".
Comment 1 Mi Amidot CLA 2008-01-16 12:33:12 EST
There's a bug in bugzilla gate page. I chose "WebTools" in initial page, but bugzilla gating page changed it to ACTF (what's that). Now I have to change it back to "WebTools". I wish Eclipse would stop put a gating page between me and bugzilla, because it should trust me that I am smart enuf to put in the right info. And since I normally delete the statements introduced by the gating page anyway.
Comment 2 Mi Amidot CLA 2008-01-16 12:43:14 EST
There is a semicolon missing in one of the lines of watch.jsp, it should be

<% String v="NYJEbJ9fNlY"; %>
Comment 3 Nitin Dahyabhai CLA 2008-01-27 22:38:04 EST
It's not happening when I try it, was there anything unusual about the setup like attached sources?  Which version of Tomcat was being used?
Comment 4 Nitin Dahyabhai CLA 2008-02-09 23:52:43 EST
Moving to JDT Debug, in case they have any insight.
Comment 5 Nitin Dahyabhai CLA 2008-02-09 23:54:03 EST
Dropping severity due to lack of response from reporter and not qualifying as causing "crashes, loss of data, [or] severe memory leak".
Comment 6 Darin Wright CLA 2009-06-05 15:23:23 EDT
Marking as works for me due to lack of input.