public DebugBreakpointUnboundEvent(enum_EVENTATTRIBUTES attributes, IDebugBoundBreakpoint2 breakpoint, enum_BP_UNBOUND_REASON reason) : base(attributes) { Contract.Requires <ArgumentNullException>(breakpoint != null, "breakpoint"); _breakpoint = breakpoint; _reason = reason; }
public DebugBreakpointUnboundEvent(enum_EVENTATTRIBUTES attributes, IDebugBoundBreakpoint2 breakpoint, enum_BP_UNBOUND_REASON reason) : base(attributes) { Contract.Requires<ArgumentNullException>(breakpoint != null, "breakpoint"); _breakpoint = breakpoint; _reason = reason; }
public int GetReason(enum_BP_UNBOUND_REASON[] pdwUnboundReason) { if (pdwUnboundReason == null) throw new ArgumentNullException("pdwUnboundReason"); if (pdwUnboundReason.Length < 1) throw new ArgumentException(); pdwUnboundReason[0] = _reason; return VSConstants.S_OK; }
private void UnbindAllBreakpoints(enum_BP_UNBOUND_REASON reason) { foreach (var breakpoint in _boundBreakpoints) { DebugEvent debugEvent = new DebugBreakpointUnboundEvent(enum_EVENTATTRIBUTES.EVENT_ASYNCHRONOUS, breakpoint, reason); breakpoint.Program.Callback.Event(DebugEngine, breakpoint.Program.Process, breakpoint.Program, null, debugEvent); breakpoint.Delete(); } _boundBreakpoints.Clear(); }
public AD7BreakpointUnboundEvent(AD7BoundBreakpoint bp, enum_BP_UNBOUND_REASON reason) { _reason = reason; _bp = bp; }
public int GetReason(enum_BP_UNBOUND_REASON[] pdwUnboundReason) { pdwUnboundReason[0] = _reason; return Constants.S_OK; }
int IDebugBreakpointUnboundEvent2.GetReason(enum_BP_UNBOUND_REASON[] pdwUnboundReason) { pdwUnboundReason[0] = enum_BP_UNBOUND_REASON.BPUR_BREAKPOINT_REBIND; return VSConstants.S_OK; }
// Engines notify the SDM that a bound breakpoint change resulted in an error public void OnBreakpointUnbound(AD7BoundBreakpoint bp, enum_BP_UNBOUND_REASON reason) { AD7BreakpointUnboundEvent eventObject = new AD7BreakpointUnboundEvent(bp, reason); Send(eventObject, AD7BreakpointUnboundEvent.IID, null); }
int IDebugBreakpointUnboundEvent2.GetReason (enum_BP_UNBOUND_REASON [] pdwUnboundReason) { LoggingUtils.PrintFunction (); pdwUnboundReason [0] = enum_BP_UNBOUND_REASON.BPUR_UNKNOWN; return Constants.S_OK; }