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 152220 - [65cat] No Stop at breakpoint
Summary: [65cat] No Stop at breakpoint
Status: CLOSED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 18:11 UTC by ulfzibis
Modified: 2010-04-29 09:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
No Stop at this breakpoint (56.25 KB, image/jpeg)
2008-11-03 18:16 UTC, ulfzibis
Details
Another not stopping breakpoint (38.49 KB, image/jpeg)
2008-11-13 00:38 UTC, ulfzibis
Details
Breakpoints in class sun.nio.cs.MS1252 (87.02 KB, image/jpeg)
2008-11-16 20:54 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2008-11-03 18:11:42 UTC
[ BUILD # : RC1 ]
[ JDK VERSION : 1.6.0 ]

- Check out project from here:
 
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-
charset-enhanced/?rev=476

- Set breakpoint as shown in attachment.
- Run debug "CharsetsTest".
- See, that breakpoint is submitted, but debugger doesn't stop there.
Comment 1 ulfzibis 2008-11-03 18:16:10 UTC
Created attachment 73148 [details]
No Stop at this breakpoint
Comment 2 Martin Entlicher 2008-11-10 11:20:07 UTC
I can not reproduce this. Execution stops on the breakpoint for me.
Do other breakpoints in the same source file work? Does really execution go through this point in your case? Did you
wait for some time? After the breakpoint was hit for the first time, when I did continue, the test was running for some
time and after that the breakpoint was hit again.
Comment 3 ulfzibis 2008-11-13 00:37:07 UTC
I've tried to reproduce it with RC2. You are right, debugger stops here.

But I've found another breakpoint, which doesn't stop. See attachment.
(Checkout rev=495)

This issue seems to be a little mysterious. Since a couple of days, I experience, that that locations, where breakpoints
don't stop, vary from day to day. So randomly try out different locations.
Today, it stops, if breakpoint is in line 29 of AsciiPagedMapEncoder, but not in line 33.

Comment 4 ulfzibis 2008-11-13 00:38:34 UTC
Created attachment 73711 [details]
Another not stopping breakpoint
Comment 5 ulfzibis 2008-11-13 01:13:57 UTC
Attention: Maybe I'm wrong with last example.
... but now I must go to bed. Let me try tomorrow again.
Comment 6 ulfzibis 2008-11-16 20:52:46 UTC
Hi,

I have checked out this revision (476) in new empty folder, and I can always reproduce this issue with RC1. Maybe
following is important:
- Run on Windows machine.
- Default charset on this machine must be "windows-1252" (I use German version of Windows XP prof. here).
I assume, that the code, where I set the breakpoint, is executed in initialization phase of the additional JVM (here JDK
1.6.0u3), and that in this state, debugger api is disabled, so Netbeans IDE can't catch the breakpoint.
Note, that my classes are preloaded by
-Xbootclasspath/p:${build.classes.dir}${path.separator}${run.test.jvmargs.xbootclasspath}

You can also set breakpoints in class sun.nio.cs.MS1252 (see next attachment). NetBeans debugger will only stop in
method newDecoder(), but not in constructor and not in initializing static variable.


I will also check this with RC2.
Comment 7 ulfzibis 2008-11-16 20:54:09 UTC
Created attachment 73801 [details]
Breakpoints in class sun.nio.cs.MS1252
Comment 8 ulfzibis 2008-11-16 21:11:12 UTC
Now I also have checked with RC2. I can reproduce same behaviour here. :-)

I can also reproduced the issue with current head revision of my project.
Comment 9 Filip Zamboj 2008-12-02 13:27:42 UTC
Reproduced.
Debugger really doesn't stop on the constructor, line 17. However, it stops on line 50 in the body of the class method.  

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 10 Martin Entlicher 2008-12-08 16:40:24 UTC
Thanks for detailed description, I've reproduced this also on Linux with default charset UTF-8. Breakpoints in
MS1252.java work fine, but breakpoints in UTF_8.java behave as you describe - no hits in constructor or static
initialization, but in other methods all hits are fine.

IMHO this is not fixable, it's just how it (JVM) works.

I'm going to try this outside of NetBeans, using jdb...
Comment 11 Martin Entlicher 2008-12-08 16:56:41 UTC
This definitely can not be fixed in NetBeans. If you think that this is a bug, submit a defect for JVM at
http://bugs.sun.com/

I've started the test in debug mode on console. While it waited for the debugger to connect, I've started jdb, attached
to it and listed the loaded classes. Besides many other, following classes from your project were already loaded:
sun.nio.cs.FastCharsetProvider
sun.nio.cs.HistoricallyNamedCharset
sun.nio.cs.StandardCharsets
sun.nio.cs.StandardCharsets$Aliases
sun.nio.cs.StandardCharsets$Cache
sun.nio.cs.StandardCharsets$Classes
sun.nio.cs.StreamDecoder
sun.nio.cs.StreamEncoder
sun.nio.cs.Surrogate$Generator
sun.nio.cs.Surrogate$Parser
sun.nio.cs.UTF_8
sun.nio.cs.UTF_8$Decoder
sun.nio.cs.UTF_8$Encoder
sun.nio.cs.Unicode

I've submitted the breakpoints and only the breakpoint in method was hit, exactly like when run in Netbeans:
Breakpoint hit: "thread=main", sun.nio.cs.UTF_8$Decoder.decodeArrayLoop(), line=69 bci=0
Comment 12 ulfzibis 2008-12-10 17:33:32 UTC
Thanks for evaluating this from console. I'm not experienced in using console.
Comment 13 Quality Engineering 2010-04-29 09:45:14 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.