I just found out, after years of using Netbeans, that there also exist class,
method, variable, exception bp... It would be a great usability extension to
create those breakpoints out of the cursor context in the editor. E.g. if you
select a method -> new method exception. Same with variables, class and
exception. That would save a lot of typing when using 'New Breakpoint' in
Well, I am sure this is already implemented and you just didn't discover the
feature. If your cursor is located somewhere in the method signature and you
invoke "Run|New Breakpoint..." from the main menu, the dialog comes up with all
the fields already prefilled. Please confirm if this is what you wanted.
Thanks for your feedback.
Jirko, thanks for the evaluation. Anyway, this is RFE not DEFECT.
IMHO Tomzi means to have a way how to create method/class/exception/variable
breakpoints directly from the Editor, like it's described in issue #43066?
The current state does not seem to be usable enough, according to the complaints
we are receiving.
Oh, got ya, thanks for the hint - I didn't try run/new breakpoint there ever
I looked first in bp-view and there 'New Breakpoint' didn't prefill the values.
The current alorithm to find out where the cursor is placed seems to be too
simple. Since eg
everything i select is recognized to be a variable, this should be more context
sensitive! Opened a RFE for this bug #87288.
However, i still think it would make sense to put some context-sensitivity for
breakpoint creation into the context-menu. Like
.) 'New Class BP', if cursor is placed on classname or wihtin classcope, but not
in method scope
.) 'New Method BP', if cursor is placed only in the method signature
.) 'New Variable BP', if cursor is placed on a variablename.
.) 'New Exception BP', if cursor is placed on an Exception.
.) 'New Line BP', if cursor is in method scope(,...) and not placed on a
classname, variable, exception.
Only one option should show at the same time. Additionally the 'Toggle
Breakpoint' should then be renamed to 'Toggle Line Breakpoint' to distinct it
from the other breakpoints
You could also have them all work like 'Toggle Breakpoint' eg. named 'Toggle
Method Breakpoint' and then be customizable like in 'Toggle Breakpoint'.
This is quite old but still NEW - I don't see Run->New Breakpoint, was this RFE completed?