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 115723

Summary: Setting a method breakpoint after Go To Source
Product: debugger Reporter: Roman Ondruska <rondruska>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Roman Ondruska 2007-09-17 16:16:38 UTC
Requested by Jim Davidson:

In the Navigator, if I double-click on a method name, I get taken to the beginning of the method definition in the Java
editor.

If I decide I want to put a new breakpoint there, I hit Run -> New Breakpoint.  Up comes the New Breakpoint window, with
the default Breakpoint Type set to "Class".  Not what I expect.

If the cursor is positioned *inside* the method body and I create a New Breakpoint, it defaults to Method, which makes
more sense to me.

Same thing if I move to a method definition with Go To Source.  The cursor is placed at the beginning of the method, and
if I set a breakpoint it defaults to Class.

The fix is to change the default in New Breakpoint, so that if the cursor is at the beginning of a method it defaults to
Method.