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.
Summary: | Line breakpoint can be set where a Method breakpoint is + context menu entry is misguiding | ||
---|---|---|---|
Product: | debugger | Reporter: | mienamoo |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | markiewb, williambacchi |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
mienamoo
2012-06-08 09:16:06 UTC
I looked it up in the code. You can set a line breakpoint via this "toogle line breakpoint" action (in the conext menu/main menu/shortcut) at the line where a method starts. That line breakpoint will never work, i think. So set this issue to P3. ACTUAL: a linebreakpoint can be set where only a method breakpoint is possible EXPECTED: a linebreakpoint CANNOT be set where a method breakpoint is possible and the menu entry should be named 'toggle breakpoint' That's not always true. A line breakpoint can be valid on method declaration line, if there's also an executable code present. E.g.: public int getSize() { return size; } Since it often depends on the compiler if there's possible to suspend the execution or not, we add the "Toggle Line Breakpoint" to all lines. Method or field breakpoints can be easily set/unset via a click next to the method declaration. |