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.
i needed to add some debugging to java.util.logging package; so made project with jdk1.6.0_20 sources for the package java.util.logging. i run the project with VM args -Xbootclasspath/a:<path> to my modified package. the code works and is used; the debugger wants to use the sources in jdk1.6.0_20 -- from the java sources in the java platforms wizard. it wants to do so even when i unchecked the box for Debugging Sources when debugging. -- breakpoint set in the modified sources do work -- but it says the breakpoint is invalid -- since its in the modified sources rather than the jdk platorm sources. so then i remove the platfrom sources with the java platforms wizard. now when debugging the jdk sources do not appear in the Sources window. -- but i still get the same complaints from the debugger Listening on javadebug Not able to submit breakpoint LineBreakpoint LogManager.java : 418, reason: No source root found for URL 'file:/C:/Program%20Files/Java/jdk1.6.0_20/src/java/util/logging/LogManager.java'. Verify the setup of project sources. Invalid LineBreakpoint LogManager.java : 418 User program running LineBreakpoint LogManager.java : 418 successfully submitted. Breakpoint hit at line 418 in class java.util.logging.LogManager by thread main. Thread main stopped at LogManager.java:418. this is nb6.9rc2
also -- after stop/restarting netbeans -- it automatically added the src.zip bundle to the sources of the jdk1.6 -- it show as added in the java platforms wizard. if i then remove the src.zip from the sources -- it is automatically added next time i debug the project. i guess i will have to move the sources out of the jdk6 installation folder to force netbeans from using them.
It's necessary to use -Xbootclasspath/p:<path> in order to use modified classes. Debugger has no way to find out that you've added something to your bootclasspath. In Debugger Console you should get a warning like: "Not able to submit breakpoint LineBreakpoint LogManager.java : 790, reason: Breakpoints source file does not belong into the preferred source root... See Window/Debugging/Sources." So go to Window/Debugging/Sources and move the source root that represents your modified JDK classes up so that it's before JDK's src.zip. This should solve the problem.