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 - Setting a method breakpoint after Go To Source
Summary: Setting a method breakpoint after Go To Source
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-17 16:16 UTC by Roman Ondruska
Modified: 2008-04-17 15:05 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.