Esempio n. 1
0
 internal void RemoveBreakpoint(Breakpoint breakpoint)
 {
     if (this._idToBreakpoint.ContainsKey(breakpoint.Id))
     {
         this._idToBreakpoint.Remove(breakpoint.Id);
     }
     breakpoint.RemoveSelf(this);
     if (this._idToBreakpoint.Count == 0)
     {
         this._context._debuggingMode = 0;
     }
     this.OnBreakpointUpdated(new BreakpointUpdatedEventArgs(breakpoint, BreakpointUpdateType.Removed));
 }
Esempio n. 2
0
 internal void RemoveBreakpoint(Breakpoint breakpoint)
 {
     if (this._idToBreakpoint.ContainsKey(breakpoint.Id))
     {
         this._idToBreakpoint.Remove(breakpoint.Id);
     }
     breakpoint.RemoveSelf(this);
     if (this._idToBreakpoint.Count == 0)
     {
         this._context._debuggingMode = 0;
     }
     this.OnBreakpointUpdated(new BreakpointUpdatedEventArgs(breakpoint, BreakpointUpdateType.Removed));
 }
Esempio n. 3
0
        // This is the implementation of the Remove-PSBreakpoint cmdlet.
        internal void RemoveBreakpoint(Breakpoint breakpoint)
        {
            _idToBreakpoint.Remove(breakpoint.Id);

            breakpoint.RemoveSelf(this);

            if (_idToBreakpoint.Count == 0)
            {
                // The last breakpoint was removed, turn off debugging.
                SetInternalDebugMode(InternalDebugMode.Disabled);
            }

            OnBreakpointUpdated(new BreakpointUpdatedEventArgs(breakpoint, BreakpointUpdateType.Removed, _idToBreakpoint.Count));
        }