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 134008 - Debugger continues to end on "Step Over"
Summary: Debugger continues to end on "Step Over"
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-25 23:15 UTC by ulfzibis
Modified: 2008-06-17 21:25 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project tree (946.52 KB, application/octet-stream)
2008-04-25 23:19 UTC, ulfzibis
Details
NB settings (7.02 MB, application/octet-stream)
2008-04-25 23:23 UTC, ulfzibis
Details
Screen shot before "Step Over" (28.68 KB, image/jpeg)
2008-04-25 23:24 UTC, ulfzibis
Details
Debugger ignores Breakpoint (46.73 KB, image/jpeg)
2008-04-28 13:28 UTC, ulfzibis
Details
Changed project tree (926.75 KB, application/octet-stream)
2008-04-28 13:33 UTC, ulfzibis
Details
Source Root / Filter for debugging (16.21 KB, image/jpeg)
2008-04-28 13:41 UTC, ulfzibis
Details
messages.log + uigestures (199.67 KB, application/octet-stream)
2008-04-28 13:55 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2008-04-25 23:15:13 UTC
See attached project and NB settings.

- Set breakpoint on 1st executable line in main() of test.java.nio.BufferUtilsTest
- Start debugger on test.java.nio.BufferUtilsTest
- 3 times invoke "Step Into"
- Invoke "Step Over" (see attached screen shot)

Instead of stepping to the next line the debugger continues to the end.
Comment 1 ulfzibis 2008-04-25 23:19:14 UTC
Created attachment 60708 [details]
Project tree
Comment 2 ulfzibis 2008-04-25 23:23:38 UTC
Created attachment 60709 [details]
NB settings
Comment 3 ulfzibis 2008-04-25 23:24:51 UTC
Created attachment 60710 [details]
Screen shot before "Step Over"
Comment 4 ulfzibis 2008-04-26 13:09:40 UTC
Debugging this project by my 6.1 RC2 is a real nightmare ...

Also "Run to Cursor" doesn't work.
The only function, which works is "Step Into", so I have to step into each method and superclass even 'Object' to
perform a debugger session.

So for me 6.1 is not ready for shipping! :-(
Comment 5 Martin Entlicher 2008-04-26 21:47:47 UTC
On Linux this works fine for me in dev builds. Needs to be tested on Windows...
Comment 6 Marian Mirilovic 2008-04-28 10:12:46 UTC
Jirka, could you please look at this ? Thanks in advance.
Comment 7 Martin Entlicher 2008-04-28 12:40:59 UTC
Can you please elaborate on what do you mean by "debugger continues to the end"? It works fine for us,
Step Over from ByteBuffer.java:259 goes to ByteBuffer.java:1359 where a field is initialized. Where does it go for you?

Run To Cursor works also fine for me. Do you have this "Java" project set as main? Run To Cursor executes the main
project (if there's no debugging session) and sets a hidden breakpoint on the line with cursor.
Comment 8 Jiri Vagner 2008-04-28 13:19:31 UTC
I tried to debug your project and everything works fine (Step In/Out, Step Over).

Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-b05

"Run to cursor" runs on main project. Check the ide help for more informations please (Java Applications > Debugging
Applications > Debugging Sessions > Starting a Local Debugging Session). 
Comment 9 ulfzibis 2008-04-28 13:25:27 UTC
By "debugger continues to the end" I mean, that there is _no_ stop (e.g. ByteBuffer.java:1359) until the entire run has
terminated.

Yes, project is set as main.

Now I have a new similar problem: Debugger ignores Breakpoint. See attachments ...
Comment 10 ulfzibis 2008-04-28 13:26:50 UTC
I experienced a new problem too.
Comment 11 ulfzibis 2008-04-28 13:28:51 UTC
Created attachment 60744 [details]
Debugger ignores Breakpoint
Comment 12 ulfzibis 2008-04-28 13:33:33 UTC
Created attachment 60745 [details]
Changed project tree
Comment 13 ulfzibis 2008-04-28 13:41:40 UTC
Created attachment 60746 [details]
Source Root / Filter for debugging
Comment 14 ulfzibis 2008-04-28 13:44:15 UTC
Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)
Userdir: C:\Dokumente und Einstellungen\ich\.netbeans\6.1rc2
Comment 15 ulfzibis 2008-04-28 13:55:14 UTC
Created attachment 60747 [details]
messages.log + uigestures
Comment 16 ulfzibis 2008-04-28 14:09:56 UTC
See also:
http://statistics.netbeans.org/analytics/detail.do?id=39462
Comment 17 Martin Entlicher 2008-04-28 14:18:07 UTC
From the message.log file it's apparent that debugger is crippled by NPE:
java.lang.NullPointerException
        at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
        at java.util.StringTokenizer.<init>(StringTokenizer.java:204)
        at org.netbeans.modules.java.j2seplatform.platformdefinition.Util.createClassPath(Util.java:68)
        at
org.netbeans.modules.java.j2seplatform.platformdefinition.J2SEPlatformImpl.getStandardLibraries(J2SEPlatformImpl.java:232)
        at
org.netbeans.modules.java.platform.classpath.PlatformClassPathProvider.findClassPath(PlatformClassPathProvider.java:80)
        at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:538)
        at org.netbeans.api.java.source.ClasspathInfo.create(ClasspathInfo.java:163)
        at org.netbeans.api.java.source.ClasspathInfo.create(ClasspathInfo.java:183)
        at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:473)
Comment 18 Martin Entlicher 2008-04-28 14:33:44 UTC
BTW, What is JDK_1.6.0-b105_debug ? Where did you download this JDK from? Or have you built it yourself?
Comment 19 ulfzibis 2008-04-28 16:03:42 UTC
It's just a descriptor for original JDK 1.6.0-b105 distribution + sources from j2se\src e.g. sun.nio.cs.
Another reason for not using the default platform is described here: Issue 130352
... and here (Sources for JDK 1.6.0_06 aren't available yet): https://java-net.dev.java.net/issues/show_bug.cgi?id=418
Comment 20 Jan Becicka 2008-05-23 13:49:39 UTC
It is caused by strange configuration of J2SEPlatform.
getSystemProperties().get(SYSPROP_JAVA_CLASS_PATH) returned null
Comment 21 Tomas Zezula 2008-06-17 14:37:30 UTC
Fixed by: 6e77322db578
Comment 22 ulfzibis 2008-06-17 21:25:48 UTC
Well done.  :-) 

Is it possible to have this fix in the next update for NB 6.1?