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.
[ BUILD # : 201101310000 ] [ JDK VERSION : 1.6.22 ] In the last few dev builds I'm having some difficulties toggling breakpoints in java files. More specifically: - clicking on the left stripe of the editor allows to set class, method and field breakpoints; this works for line breakpoints only if a debugging session is running - if no debugging session is running, ctrl-f8 doesn't work at all ctrl-shift-f8 always works.
I've tested build #201101310000, but breakpoints work fine there. I've created a simple Java Application and can submit line breakpoints without problems. Please note that we prevent from submitting breakpoints to empty lines and comments. Can you please provide a code snippet where breakpoint submission does not work?
It happened again today with build 20110202. I know that breakpoints can only be set on "executable" lines. I think it doesn't depend on the java code that is being edited - when it happens, the behaviour is the same in all my java files. After restarting the ide everything works fine. May this be due to source files changing outside netbeans? I use mercurial queues from the command line, so there are frequent updates which are not controlled by the ide. I'll let you know if I understand under which circumstances it happens.
From the code it looks like the toggle breakpoint action can stay waiting for the Java parser. It's using parser to determine whether the breakpoint can be submitted or not. When the parser is busy with re-scanning of sources, it can take some time.
The toggle breakpoint action seems to work fine in 7.1 builds. It seems to be fixed by other changes already.