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 51572 - Step Over jumps only across breakpoints
Summary: Step Over jumps only across breakpoints
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 4.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-16 17:10 UTC by L Martinek
Modified: 2006-03-24 09:42 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 L Martinek 2004-11-16 17:10:10 UTC
[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.
Comment 1 Martin Grebac 2004-11-17 16:14:49 UTC
I'm working on it, don't know yet where's the problem.
Comment 2 Martin Grebac 2004-11-17 18:36:05 UTC
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
Comment 3 L Martinek 2004-11-18 13:15:27 UTC
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. 
Comment 4 L Martinek 2004-11-18 14:11:59 UTC
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.
Comment 6 Jan Chalupa 2004-11-18 15:45:02 UTC
Please prepare a fix for 4.0.
Comment 7 L Martinek 2004-11-18 16:29:42 UTC
verified on trunk
Comment 8 Martin Grebac 2004-11-18 17:13:28 UTC
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.
Comment 9 Jan Jancura 2004-11-18 20:17:21 UTC
As far as I know fix is OK and safe.
Comment 11 L Martinek 2004-11-23 14:04:10 UTC
verified in 4.0