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 tried to use Netbeans+CND with latest "cnd.debugger.gdb" module, and found out that it does not allow to debug Java projects. It allows to set or remove breakpoints, but as soon as I press "Debug", an "Exception" dialog appears: java.lang.NullPointerException at org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.annotate(CurrentThreadAnnotationListener.java:124) at org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.propertyChange(CurrentThreadAnnotationListener.java:65) at org.netbeans.api.debugger.DebuggerManager.firePropertyChange(DebuggerManager.java:539) at org.netbeans.api.debugger.DebuggerManager.setCurrentSession(DebuggerManager.java:384) at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:321) at org.netbeans.api.debugger.jpda.JPDADebugger.startListening(JPDADebugger.java:171) at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:274) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926) If I press "Ok", the dialog goes away, and the debugging starts. But when debugging is finishing, there is another exception, and the debugging session does not finish properly: debugger windows stay, Session view still shows these sessions, debug toolbar stays and some buttons are enabled ("Finish Debugger Session", "New Watch"). Here is the exception, that happens at the end of debugging: ============================================================ java.lang.NullPointerException at org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.annotate(CurrentThreadAnnotationListener.java:124) at org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.propertyChange(CurrentThreadAnnotationListener.java:65) at org.netbeans.api.debugger.DebuggerManager.firePropertyChange(DebuggerManager.java:539) at org.netbeans.api.debugger.DebuggerManager.setCurrentSession(DebuggerManager.java:384) at org.netbeans.api.debugger.DebuggerManager.removeSession(DebuggerManager.java:1078) at org.netbeans.api.debugger.DebuggerManager.access$400(DebuggerManager.java:106) at org.netbeans.api.debugger.DebuggerManager$SessionListener.propertyChange(DebuggerManager.java:1161) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270) at org.netbeans.api.debugger.Session.removeEngine(Session.java:353) at org.netbeans.api.debugger.DebuggerEngine$Destructor.killEngine(DebuggerEngine.java:195) at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.finish(JPDADebuggerImpl.java:822) at org.netbeans.modules.debugger.jpda.actions.KillActionProvider.doAction(KillActionProvider.java:46) at org.netbeans.api.debugger.ActionsManager.doAction(ActionsManager.java:126) at org.netbeans.api.debugger.Session.kill(Session.java:250) at org.netbeans.modules.debugger.jpda.actions.StartActionProvider$3.run(StartActionProvider.java:224) at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:112) [catch] at java.lang.Thread.run(Thread.java:595)
Fixed in beta2 build.