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.
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>
*** This issue has been marked as a duplicate of 51877 ***
Verified.