private void ClearBreakpoint() { uint BPAddress = TheDebugger.GetLabelAddress(SelectedBreakpointFullLabel.Key + SelectedBreakpointFullLabel.Value); if (TheDebugger.ClearBreakpoint(BPAddress)) { KeyValuePair <string, List <string> > BP = Breakpoints.Where(x => x.Key == SelectedBreakpointFullLabel.Key).First(); BP.Value.Remove(SelectedBreakpointFullLabel.Value); if (BP.Value.Count == 0) { Breakpoints.Remove(BP); } UpdateBreakpoints(); } PerformingAction = false; }
int IDebugBoundBreakpoint2.Enable(int fEnable) { bool enable = (fEnable != 0); if (Atomic(() => Enabled != enable, () => { Enabled = enable; supressNotify = true; })) { if (enable) { Debugger.SetBreakpoint(this); } else { Debugger.ClearBreakpoint(this); } } return(VSConstants.S_OK); }
public void ClearBreakpoint(Breakpoint breakpoint) { Debugger.ClearBreakpoint(breakpoint); }