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.0 build 200411150946, JDK 1.5.0_01] Two conditions have to be fulfilled: 1) The JSP has to be in folder. 2) Step Over has to be invoked on last line. After that Step Over doesn't work and only breakpoints are reached. After finishing and starting new debugger session debugging works.
I'm working on it, don't know yet where's the problem.
Problem is that packages like org.apache.jsp.xxx are filtered out by smart stepper under some conditions. I removed the JDK_1.5 keyword. Even though I'm not able to reproduce on jdk1.4.x, the situation may happen there as well. Fixed in trunk: http://web.netbeans.org/source/browse/web/jspdebug/src/org/netbeans/modules/web/debug/EngineContextProviderImpl.java.diff?r1=1.5&r2=1.6
I verified it on trunk on WinXP and it doesn't work. If jsp is in a folder, breakpoint is never reached, all JSP is executed and showed in browser.
It didn't work becasue of another bug. I filled it as issue #51644. This bug is fixed, but another problem arose: When you Step Over from last line and then reload the page, you will not debug first line, but contructor from generated servlet will be debugged.
Remaining problem fixed in trunk, too: http://web.netbeans.org/source/browse/web/jspdebug/src/org/netbeans/modules/web/debug/EngineContextProviderImpl.java.diff?r1=1.6&r2=1.7
Please prepare a fix for 4.0.
verified on trunk
Fix is prepared, message to reviewers sent, qe confirmed it works, I asked Hanz to review the fix, so I'll wait for 24 hours and for Hanz's confirmation.
As far as I know fix is OK and safe.
Fixed in 40 branch, too: http://web.netbeans.org/source/browse/web/jspdebug/src/org/netbeans/modules/web/debug/EngineContextProviderImpl.java.diff?r1=1.5&r2=1.5.4.1
verified in 4.0