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 32575 - Check if its possible to validate breakpoint before its added to debugger
Summary: Check if its possible to validate breakpoint before its added to debugger
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-04-02 16:20 UTC by Jan Jancura
Modified: 2010-04-29 09:12 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 Jan Jancura 2003-04-02 16:20:59 UTC
Add some validate () method to LineBreakpoint ?!@!??!
Comment 1 Jan Jancura 2003-04-07 17:11:23 UTC
1) Is breakpoint validated on "language layer"? So, can breakpoint be
validated indempendently on concrete debugger plug-in (= debugger
implementation).
2) Is breakpoint validated on "debugger plug-in layer"? Can breakpoint
be validated by debugger plug-in even if no debugger session is
started for this debugger plug-in?
In this case engine should "ask" all registered debugger plug-ins for
concrete "breakpoint request".
or
3) Should be breakpoint validated for concrete debugger session only?
It means you need some connection to running debugger engine to
validate request for breakpoint.
In this case I do not know what to do if there is no running session.
That is why I need to see some UI specs. for your debuggers.

We should support 2 + 3, I think.
Comment 2 Jan Jancura 2003-04-11 15:32:29 UTC
Solution should support this scenario (Ivan S.):

We make a rule that says the _engine_ maintains the ultimate state.
This engine can be an external engine interacting with the gui through 
a proxy/surrogate or it could be more tightly tied like jpda is. The 
bpt interaction will then looks like this:

Positive Scenario
	- user clicks on the glyph gutter.
	- gui _doesn't_ create a Bpt object
	- gui sends "new bpt" message to external engine
	- external engine creates Bpt object.
	- external engine tells gui that it created a Bpt object
	- gui creates Bpt object.
Thsi will work cleanly if the bpt creation is initiated in the engine.

the gui will not have to futz with deciding whether the initiation was
from the gui or independently from the engine.	
	
Negative scenario	
	- user clicks on the glyph gutter.
	- gui _doesn't_ create a Bpt object
	- gui sends "new bpt" message to external engine
	- external engine decides bpt is invalid.
	- external engine sends the gui a generic error message
	- gui _doesn't have to clean a Bpt object of its own.
Comment 3 Jan Jancura 2003-06-11 09:42:34 UTC
# validation of breakpoints:

   1. when brakpoint is created - there should be possibility to
refuse the breakpoint - that it will not be created
   2. and later we have some glyph mapped on breakpoint.valid
property. Ouestions:  what does it mean valid breakpoint?, once vaild
= valid forever???
Comment 4 Jan Jancura 2003-10-13 15:21:13 UTC
Fixed.
1) valid property has been moved out from debugger API
2) toggling of breakpoints is responsibility of debugger plug-ins now,
see BreakpointsProvider.toggleBreakpoint ()
Comment 5 Quality Engineering 2010-04-29 09:12:54 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.