This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 56546 - JSP Debugger Confused by Modifying JSP
Summary: JSP Debugger Confused by Modifying JSP
Status: CLOSED DUPLICATE of bug 51877
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-16 15:17 UTC by ssoong
Modified: 2006-03-24 12:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ssoong 2005-03-16 15:17:01 UTC
NB4.1Beta
JDK1.5.0 building for JDK1.4.2

This is a more specific discovery compared to issue #54039.
JSP Debugger stops at the wrong line after JSP is modified.

I compiled a jsp. Marked the lines where I wanted the debugger to pause.
Right-clicked "debug file" using Projects window.
Debugger ran and paused as expected.
Then I decided to modify the JSP by inserting new text into my SQL 
StringBuffer tag. I inserted 3 lines.
Refreshed the browser on the url of the jsp.
The debugger did run but paused 3 lines away from my marked lines.
Sometimes the debugger would not even pause.

How I went around the bug:
Stop and restart the debugger.


This bug may not show unless you have jsp custom tags embedded in the JSP.
I have jsp tag library which anyone could create easily (as long as you know 
to write custom jsp tag libs). The tag body is a StringBuffer object. Below is 
an example of a JSP I normally write ...


<%@page import="mylib.masada.jdbc.JUtil" %>
<%@taglib uri="/WEB-INF/my-tags.tld" prefix="masada"%>

<%
...lots of java code....
%>
<masada:StringBuffer id="ExtractCpk" scope="request">
    create table sum_<%=Sig%> as
    select s.param,
      s.lo_limit,
      s.hi_limit,
      s.target,
      l.*
    from
      summary_<%=id%> s,
      ylots_<%=Sig%> l
    where
      s.link = l.link
    ;
</masada:StringBuffer>

<%
JUtil.SQLExec(""+ExtractCpk);
...lots of java code ....
%>
<HTML>
... lots of HTML code embedded with java code segments ...
</HTML>
Comment 1 Libor Kotouc 2005-03-16 15:22:29 UTC

*** This issue has been marked as a duplicate of 51877 ***
Comment 2 Jiri Skrivanek 2005-12-14 14:27:38 UTC
Verified.