public AD7BoundBreakpoint(
     NodeBreakpointBinding breakpointBinding,
     AD7PendingBreakpoint pendingBreakpoint,
     AD7BreakpointResolution breakpointResolution,
     bool enabled) {
     _breakpointBinding = breakpointBinding;
     _pendingBreakpoint = pendingBreakpoint;
     _breakpointResolution = breakpointResolution;
     _enabled = enabled;
     _deleted = false;
 }
Exemple #2
0
 public AD7BoundBreakpoint(
     NodeBreakpointBinding breakpointBinding,
     AD7PendingBreakpoint pendingBreakpoint,
     AD7BreakpointResolution breakpointResolution,
     bool enabled)
 {
     this._breakpointBinding    = breakpointBinding;
     this._pendingBreakpoint    = pendingBreakpoint;
     this._breakpointResolution = breakpointResolution;
     this._enabled = enabled;
     this._deleted = false;
 }
 private void OnBreakpointBound(object sender, BreakpointBindingEventArgs e) {
     var pendingBreakpoint = _breakpointManager.GetPendingBreakpoint(e.Breakpoint);
     var breakpointBinding = e.BreakpointBinding;
     var codeContext = new AD7MemoryAddress(this, pendingBreakpoint.DocumentName, breakpointBinding.Target.Line, breakpointBinding.Target.Column);
     var documentContext = new AD7DocumentContext(codeContext);
     var breakpointResolution = new AD7BreakpointResolution(this, breakpointBinding, documentContext);
     var boundBreakpoint = new AD7BoundBreakpoint(breakpointBinding, pendingBreakpoint, breakpointResolution, breakpointBinding.Enabled);
     _breakpointManager.AddBoundBreakpoint(breakpointBinding, boundBreakpoint);
     Send(
         new AD7BreakpointBoundEvent(pendingBreakpoint, boundBreakpoint),
         AD7BreakpointBoundEvent.IID,
         null
     );
 }