Exemplo n.º 1
0
        // Toggles the enabled state of this pending breakpoint.
        int IDebugPendingBreakpoint2.Enable(int fEnable)
        {
            _enabled = fEnable != 0;

            if (_breakpoint != null)
            {
                lock (_breakpoint) {
                    foreach (NodeBreakpointBinding binding in _breakpoint.GetBindings())
                    {
                        var boundBreakpoint = (IDebugBoundBreakpoint2)_bpManager.GetBoundBreakpoint(binding);
                        boundBreakpoint.Enable(fEnable);
                    }
                }
            }

            return(VSConstants.S_OK);
        }