Example #1
0
        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;
        }
Example #2
0
        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);
        }
Example #3
0
 public void ClearBreakpoint(Breakpoint breakpoint)
 {
     Debugger.ClearBreakpoint(breakpoint);
 }