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 194912 - Toggle breakpoint not (always) working
Summary: Toggle breakpoint not (always) working
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 14:24 UTC by aldobrucale
Modified: 2011-12-06 16:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2011-01-31 14:24:28 UTC
[ 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.
Comment 1 Martin Entlicher 2011-01-31 16:08:10 UTC
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?
Comment 2 aldobrucale 2011-02-02 16:44:28 UTC
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.
Comment 3 Martin Entlicher 2011-02-07 14:24:32 UTC
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.
Comment 4 Martin Entlicher 2011-12-06 16:35:44 UTC
The toggle breakpoint action seems to work fine in 7.1 builds. It seems to be fixed by other changes already.