Example #1
0
 internal static async Task Remove(this NodeBreakpoint breakpoint)
 {
     foreach (var binding in breakpoint.GetBindings())
     {
         await binding.Remove().ConfigureAwait(false);
     }
 }
Example #2
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);
        }