Can't set breakpoint in eclipse
I'm using eclipse (and also the groovy-eclipse plugin), and sometimes I can't set breakpoints on lines. I'll double click the gutter, and the breakpoint will flash on then off, and it will set the breakpoint somewhere else, lower in the code.
I'll be able to set breakpoints fine for certain parts of the code, but some sections of the code wi开发者_JAVA百科ll exhibit the above described behavior.
When this happens I have to restart eclipse, or cut the code i want to set the breakpoint on, and paste it lower in the file.
Anyone else experience this, or have an idea what causes it?
What version of Groovy-Eclipse are you using? We have recently fixed a few problems in this area. I'd recommend updating to the latest release, 2.1.1.
There is one known open issue in this area, documented here:
http://jira.codehaus.org/browse/GRECLIPSE-888
There may be more issues and if you find any strange breakpoint setting behavior after updating, then please raise a new jira issue for it.
Well, there are few types of breakpoints available in Eclipse:
Line Breakpoint -> Lines those will be executing. You will always get a breakpoint.
Method Breakpoint -> for methods
WatchPoint -> for member declarations.
BreakPoint -> for class level breakpoint
When u double click for breakpoint at a line containing bracket "{" or "}", the LineBreakPoint is set to the next executable line automatically.
精彩评论