Exemplo n.º 1
0
        // Remove all of the bound breakpoints for this pending breakpoint
        public void ClearBreakpointBindingResults()
        {
            if (_breakpoint != null)
            {
                lock (_breakpoint) {
                    foreach (NodeBreakpointBinding binding in _breakpoint.GetBindings())
                    {
                        var boundBreakpoint = (IDebugBoundBreakpoint2)_bpManager.GetBoundBreakpoint(binding);
                        if (boundBreakpoint != null)
                        {
                            boundBreakpoint.Delete();
                            binding.Remove().WaitAndUnwrapExceptions();
                        }
                    }
                }

                _bpManager.RemovePendingBreakpoint(_breakpoint);
                _breakpoint.Deleted = true;
                _breakpoint         = null;
            }

            _breakpointErrors.Clear();
        }