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.
Finding One participant wanted to define conditional breakpoint the New Breakpoint dialog. He didn't know how he was supposed to add a line breakpoint first and then modify it's properties. He went directly to "New Breakpoint" dialog and expected he can setup everything there. Another participant also used the New Breakpoint dialog. He added "Method" breakpoint. Severity Two participants expected such behavior. For completeness, it seems correct to show all breakpoint types in the New Breakpoint dialogs even though the line breakpoint would most likely by used with toggle action. Recommendation Add "Line" breakpoints into the New Breakpoint dialog.
I'm not sure yet whether this was intentional or not. There is Toggle Breakpoint action for line breakpoints. Perhaps the names are not the best...
I am not sure whether this is a good idea. From the usability point of view, it is really annoying to add line breakpoints via dialog requesting a line number, it is definitely an obsolete approach. If we offer such way, it may seem (to newbies) that there is no other way. AFAIK it is also not possible e.g. in Eclipse. We changed menu item 'Toggle Breakpoint' to 'Toggle Line Breakpoint' (this item is menu predecessor of general 'New Breakpoint...'), so it should be much more intuitive how to add line breakpoints via main menu now. Perhaps, we should be consistent with C/C++ debugger where it is possible to add line bkpt via dialog. Question is where the change should be done. For NB 6, the 'Toggle Line Breakpoint' should be an acceptable solution IMHO. We can discuss other ways for next NB release. Until we have a clear clarification what the best solution is, marking as incomplete.
Maybe participants wanted to use the dialog just because they wanted to see all the options associated with line breakpoints. Things like stop at certain number of hits, etc. For completeness, it should be there.
Because this issue seems to be solved by placing Toggle line breakpoint item just before the New breakpoint item in Run menu and there is no activity or other suggestions concerning adding of line breakpoint option to the new breakpoint dialog, I'm setting this issue to resolved fixed. Feel free to reopen the issue in case of further suggestions.
Using the New Breakpoint dialog for setting conditional line breakpoints is an obvious choice. If it's not there, the user has to toggle line breakpoint and then right-click on it and modify its properties. Using the New Breakpoint dialog which automatically sets the line numbers and other properties seems like the clear solution to me. Also, today I tried setting a new breakpoint and the dialog offered me to use "PHP" debugger even though I had a Java class open. Something seems to broken there.
Ok, seems reasonable. Btw. the PHP thing is covered in Issue #138779 so please vote for it :).
Fixed. http://hg.netbeans.org/main/rev/dced783d8a78
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/dced783d8a78 User: Daniel Prusa <dprusa@netbeans.org> Log: #90144: [Study][DB-11] Line breakpoint is not in the New Breakpoint dialog
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.