/// <summary> /// Creates an enumerator of breakpoints that were bound on this event. /// </summary> /// <param name="ppEnum">Returns an IEnumDebugBoundBreakpoints2 object that enumerates all the breakpoints bound from this event.</param> /// <returns>If successful, returns S_OK. Returns S_FALSE if there are no bound breakpoints; otherwise, returns an error code.</returns> /// <remarks>The list of bound breakpoints is for those bound to this event and might not be the entire list of breakpoints bound from a pending breakpoint. To get a list of all breakpoints bound to a pending breakpoint, call the IDebugBreakpointBoundEvent2::GetPendingBreakpoint method to get the associated IDebugPendingBreakpoint2 object and then call the IDebugPendingBreakpoint2::EnumBoundBreakpoints method to get an IEnumDebugBoundBreakpoints2 object which contains all the bound breakpoints for the pending breakpoint.</remarks> public int EnumBoundBreakpoints( out IEnumDebugBoundBreakpoints2 ppEnum ) { var boundBreakpoints = new IDebugBoundBreakpoint2[1]; boundBreakpoints[0] = BoundBreakpoint; ppEnum = new BoundBreakpointsEnumerator( boundBreakpoints ); return VSConstants.S_OK; }
public BreakpointEvent(Program program, IEnumDebugBoundBreakpoints2 boundBreakpoints) : base(program.Engine, typeof(IDebugBreakpointEvent2).GUID, STOPPING, program, program) { this.boundBreakpoints = boundBreakpoints; }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { var boundBreakpoints = new IDebugBoundBreakpoint2[1]; boundBreakpoints[0] = m_boundBreakpoint; ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); return VSConstants.S_OK; }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { IDebugBoundBreakpoint2[] boundBreakpoints = new IDebugBoundBreakpoint2[1]; boundBreakpoints[0] = m_boundBreakpoint; ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); return(EngineConstants.S_OK); }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { IDebugBoundBreakpoint2 [] breakpoints = new IDebugBoundBreakpoint2 [] { m_boundBreakpoint }; ppEnum = new DebuggeeBreakpointBound.Enumerator(breakpoints); return(Constants.S_OK); }
// Enumerates all breakpoints bound from this pending breakpoint int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { lock (_boundBreakpoints) { IDebugBoundBreakpoint2[] boundBreakpoints = _boundBreakpoints.ToArray(); ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); } return(VSConstants.S_OK); }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { var boundBreakpoints = new IDebugBoundBreakpoint2[1]; boundBreakpoints[0] = boundBreakpoint; ppEnum = new MonoBoundBreakpointsEnum(boundBreakpoints); return(VSConstants.S_OK); }
public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 enumerator) { lock (boundBreakpoints) { enumerator = new MonoBoundBreakpointsEnum(boundBreakpoints.ToArray()); } return(VSConstants.S_OK); }
// Token: 0x06000096 RID: 150 RVA: 0x000038BF File Offset: 0x00001ABF public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 e) { e = new AD7BoundBreakpointsEnum(new IDebugBoundBreakpoint2[] { this.boundBreakpoint }); return(0); }
public BreakpointEvent(IEnumDebugBoundBreakpoints2 boundBreakpoints) { if (boundBreakpoints == null) { throw new ArgumentNullException("boundBreakpoints"); } BoundBreakpoints = boundBreakpoints; }
/// <summary> /// Creates an enumerator of breakpoints that were bound on this event. /// </summary> /// <param name="ppEnum">Returns an IEnumDebugBoundBreakpoints2 object that enumerates all the breakpoints bound from this event.</param> /// <returns>If successful, returns S_OK. Returns S_FALSE if there are no bound breakpoints; otherwise, returns an error code.</returns> /// <remarks>The list of bound breakpoints is for those bound to this event and might not be the entire list of breakpoints bound from a pending breakpoint. To get a list of all breakpoints bound to a pending breakpoint, call the IDebugBreakpointBoundEvent2::GetPendingBreakpoint method to get the associated IDebugPendingBreakpoint2 object and then call the IDebugPendingBreakpoint2::EnumBoundBreakpoints method to get an IEnumDebugBoundBreakpoints2 object which contains all the bound breakpoints for the pending breakpoint.</remarks> public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { var boundBreakpoints = new IDebugBoundBreakpoint2[1]; boundBreakpoints[0] = BoundBreakpoint; ppEnum = new BoundBreakpointsEnumerator(boundBreakpoints); return(VSConstants.S_OK); }
int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = new AD7BoundBreakpointEnum( _boundBreakpoint == null ? new IDebugBoundBreakpoint2[] { } : new IDebugBoundBreakpoint2[] { _boundBreakpoint }); return(VSConstants.S_OK); }
public BreakpointEvent( IEnumDebugBoundBreakpoints2 boundBreakpoints ) { if ( boundBreakpoints == null ) { throw new ArgumentNullException( "boundBreakpoints" ); } BoundBreakpoints = boundBreakpoints; }
/// <summary> /// Enumerates all breakpoints bound from this pending breakpoint. /// </summary> /// <param name="enumerator">The enumerator.</param> /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns> public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 enumerator) { lock (_boundBreakpoints) { enumerator = new MonoBoundBreakpointsEnumerator(_boundBreakpoints.OfType <IDebugBoundBreakpoint2>().ToArray()); } return(S_OK); }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { //IDebugBoundBreakpoint2[] boundBreakpoints = new IDebugBoundBreakpoint2[1]; //boundBreakpoints[0] = _boundBreakpoint; //ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); //return Constants.S_OK; return(_pendingBreakpoint.EnumBoundBreakpoints(out ppEnum)); }
public DebugBreakpointBoundEvent(enum_EVENTATTRIBUTES attributes, IDebugPendingBreakpoint2 pendingBreakpoint, IEnumDebugBoundBreakpoints2 boundBreakpoints) : base(attributes) { Contract.Requires <ArgumentNullException>(pendingBreakpoint != null, "pendingBreakpoint"); Contract.Requires <ArgumentNullException>(boundBreakpoints != null, "boundBreakpoints"); _pendingBreakpoint = pendingBreakpoint; _boundBreakpoints = boundBreakpoints; }
public DebugBreakpointBoundEvent(enum_EVENTATTRIBUTES attributes, IDebugPendingBreakpoint2 pendingBreakpoint, IEnumDebugBoundBreakpoints2 boundBreakpoints) : base(attributes) { Contract.Requires<ArgumentNullException>(pendingBreakpoint != null, "pendingBreakpoint"); Contract.Requires<ArgumentNullException>(boundBreakpoints != null, "boundBreakpoints"); _pendingBreakpoint = pendingBreakpoint; _boundBreakpoints = boundBreakpoints; }
public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { if (_deleted) { ppEnum = null; return(AD7Constants.E_BP_DELETED); } ppEnum = new EnumDebugBoundBreakpoints(_boundBreakpoints); return(VSConstants.S_OK); }
/// <summary> /// Enumerates all breakpoints bound from this pending breakpoint. /// </summary> public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { DLog.Debug(DContext.VSDebuggerComCall, "DebugPendingBreakpoint.EnumBoundBreakpoints"); if (IsDeleted) { ppEnum = null; return(HResults.E_BP_DELETED); } ppEnum = new BoundBreakpointsEnum(boundBreakpoints); return(VSConstants.S_OK); }
public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { if (_boundBreakpoint != null) { ppEnum = new AD7BoundBreakpointsEnum(new[] { _boundBreakpoint }); } else { ppEnum = null; } return(Constants.S_OK); }
public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 boundBreakpointsEnum) { if (_newlyBoundBreakpoints != null && _breakpointBoundEnumFactory != null) { boundBreakpointsEnum = _breakpointBoundEnumFactory.Create(_newlyBoundBreakpoints); } else { _pendingBreakpoint.EnumBoundBreakpoints(out boundBreakpointsEnum); } return(VSConstants.S_OK); }
public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 boundBreakpointsEnum) { boundBreakpointsEnum = null; if (_deleted) { return(AD7Constants.E_BP_DELETED); } IBoundBreakpoint[] boundBreakpoints = _boundBreakpoints.Values.ToArray(); boundBreakpointsEnum = _breakpointBoundEnumFactory.Create(boundBreakpoints); return(VSConstants.S_OK); }
int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { Debug.WriteLine("AD7Breakpoint: EnumBoundBreakpoints"); if (enumError == null) { ppEnum = this; return(VSConstants.S_OK); } else { ppEnum = null; return(VSConstants.E_FAIL); } }
int IDebugBreakpointEvent2.EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = null; if (_boundBreakpoints == null) { return(Constants.S_OK); } else { return(_boundBreakpoints.EnumBoundBreakpoints(out ppEnum)); } //ppEnum = _boundBreakpoints; //return Constants.S_OK; }
// Enumerates all breakpoints bound from this pending breakpoint int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = null; if (_breakpoint != null) { lock (_breakpoint) { IDebugBoundBreakpoint2[] boundBreakpoints = _breakpoint.GetBindings() .Select(binding => _bpManager.GetBoundBreakpoint(binding)) .Cast <IDebugBoundBreakpoint2>().ToArray(); ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); } } return(VSConstants.S_OK); }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { // // Enumerates all breakpoints bound from this pending breakpoint. // LoggingUtils.PrintFunction(); try { ppEnum = new DebuggeeBreakpointBound.Enumerator(m_boundBreakpoints.ToArray()); return(Constants.S_OK); } catch (Exception e) { LoggingUtils.HandleException(e); ppEnum = null; return(Constants.E_FAIL); } }
// Enumerates all breakpoints bound from this pending breakpoint int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { lock (this) ppEnum = new AD7BoundBreakpointsEnum(m_boundBreakpoints.ToArray()); return Constants.S_OK; }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { return(_breakpoint.EnumBoundBreakpoints(out ppEnum)); }
/// <summary> /// Enumerates all breakpoints bound from this pending breakpoint. /// </summary> public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { DLog.Debug(DContext.VSDebuggerComCall, "DebugPendingBreakpoint.EnumBoundBreakpoints"); if (IsDeleted) { ppEnum = null; return HResults.E_BP_DELETED; } ppEnum = new BoundBreakpointsEnum(boundBreakpoints); return VSConstants.S_OK; }
public int EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { Trace.WriteLine("BreakpointEvent: EnumBreakpoints"); ppEnum = _breakpoint; return VSConstants.S_OK; }
public int EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { if (_deleted) { ppEnum = null; return AD7Constants.E_BP_DELETED; } ppEnum = new EnumDebugBoundBreakpoints(_boundBreakpoints); return VSConstants.S_OK; }
int IDebugBreakpointEvent2.EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = m_boundBreakpoints; return VSConstants.S_OK; }
public BreakpointHit (IEnumDebugBoundBreakpoints2 boundBreakpoints) { m_boundBreakpoints = boundBreakpoints; }
int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = new AD7BoundBreakpointsEnum(new IDebugBoundBreakpoint2[] { this }); return(VSConstants.S_OK); }
public int EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = _breakpoints; return(VSConstants.S_OK); }
int IDebugBreakpointEvent2.EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = null; if (_boundBreakpoints == null) return Constants.S_OK; else return _boundBreakpoints.EnumBoundBreakpoints(out ppEnum); //ppEnum = _boundBreakpoints; //return Constants.S_OK; }
int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = new AD7BoundBreakpointEnum( _boundBreakpoint == null ? new IDebugBoundBreakpoint2[] { } : new IDebugBoundBreakpoint2[] { _boundBreakpoint }); return VSConstants.S_OK; }
int IDebugBreakpointEvent2.EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { LoggingUtils.PrintFunction (); ppEnum = m_boundBreakpoints; return Constants.S_OK; }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = new AD7BoundBreakpointsEnum(new IDebugBoundBreakpoint2[] { m_boundBreakpoint }); return Constants.S_OK; }
public DebugBreakpointEvent(enum_EVENTATTRIBUTES attributes, IEnumDebugBoundBreakpoints2 breakpoints) : base(attributes) { Contract.Requires<ArgumentNullException>(breakpoints != null, "breakpoints"); _breakpoints = breakpoints; }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = new AD7BoundBreakpointsEnum(new IDebugBoundBreakpoint2[] { _breakpoint }); return(VSConstants.S_OK); }
int IDebugBreakpointEvent2.EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = _boundBreakpoints; return(Constants.S_OK); }
public AD7BreakpointEvent(IDebugBoundBreakpoint2 boundBreakpoint) { // m_boundBreakpoints = boundBreakpoints; this.m_boundBreakpoints = new AD7BoundBreakpointsEnum(new IDebugBoundBreakpoint2[] { boundBreakpoint }); }
int IEnumDebugBoundBreakpoints2.Clone(out IEnumDebugBoundBreakpoints2 ppEnum) { Debug.WriteLine("AD7Breakpoint: Clone"); throw new NotImplementedException(); }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { //IDebugBoundBreakpoint2[] boundBreakpoints = new IDebugBoundBreakpoint2[1]; //boundBreakpoints[0] = _boundBreakpoint; //ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); //return Constants.S_OK; return _pendingBreakpoint.EnumBoundBreakpoints(out ppEnum); }
public int EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = _breakpoints; return VSConstants.S_OK; }
public DebugBreakpointEvent(enum_EVENTATTRIBUTES attributes, IEnumDebugBoundBreakpoints2 breakpoints) : base(attributes) { Contract.Requires <ArgumentNullException>(breakpoints != null, "breakpoints"); _breakpoints = breakpoints; }
// Enumerates all breakpoints bound from this pending breakpoint int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = null; if (_breakpoint != null) { lock (_breakpoint) { IDebugBoundBreakpoint2[] boundBreakpoints = _breakpoint.GetBindings() .Select(binding => _bpManager.GetBoundBreakpoint(binding)) .Cast<IDebugBoundBreakpoint2>().ToArray(); ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); } } return VSConstants.S_OK; }
public AD7BreakpointEvent(IEnumDebugBoundBreakpoints2 boundBreakpoints) { _boundBreakpoints = boundBreakpoints; }
/// <summary> /// Enumerates all breakpoints bound from this pending breakpoint. /// </summary> /// <param name="ppEnum">Returns an IEnumDebugBoundBreakpoints2 object that enumerates the bound breakpoints.</param> /// <returns>If successful, returns S_OK; otherwise, returns an error code. Returns E_BP_DELETED if the breakpoint has been deleted.</returns> public virtual int EnumBoundBreakpoints( out IEnumDebugBoundBreakpoints2 ppEnum ) { Logger.Debug( string.Empty ); ppEnum = null; return VSConstants.E_NOTIMPL; }
int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { Debug.WriteLine("AD7Breakpoint: EnumBoundBreakpoints"); if (enumError == null) { ppEnum = this; return VSConstants.S_OK; } else { ppEnum = null; return VSConstants.E_FAIL; } }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = _breakpoint; return VSConstants.S_OK; }
public DebugStepCompleteEvent(enum_EVENTATTRIBUTES attributes, IEnumDebugBoundBreakpoints2 breakpoints, enum_STEPSTATUS stepStatus) : base(attributes) { _breakpoints = breakpoints; _stepStatus = stepStatus; }
public virtual void OnBreakpoint( IEnumDebugBoundBreakpoints2 boundBreakpoints ) { Logger.Debug( string.Empty ); var eventObject = new BreakpointEvent( boundBreakpoints ); OnDebugEvent( eventObject, InterfaceGuids.IDebugBreakpointEvent2Guid ); }
// Enumerates all breakpoints bound from this pending breakpoint int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { IDebugBoundBreakpoint2[] boundBreakpoints = _boundBreakpoints.ToArray(); ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints); return VSConstants.S_OK; }
public int EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { return _breakpoint.EnumBoundBreakpoints(out ppEnum); }
public int EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { return(_breakpoint.EnumBoundBreakpoints(out ppEnum)); }
public AD7BreakpointEvent(IEnumDebugBoundBreakpoints2 boundBreakpoints) { m_boundBreakpoints = boundBreakpoints; }
public int EnumBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum) { ppEnum = _breakpoints; return ppEnum != null ? VSConstants.S_OK : VSConstants.E_NOTIMPL; }
int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints (out IEnumDebugBoundBreakpoints2 ppEnum) { LoggingUtils.PrintFunction (); List<IDebugBoundBreakpoint2> boundBreakpoints = new List<IDebugBoundBreakpoint2> (1); boundBreakpoints.Add (m_boundBreakpoint); ppEnum = new DebuggeeBreakpointBound.Enumerator (boundBreakpoints); return Constants.S_OK; }