internal bool GetEnableDisableBreakpointsInfo(out int count) { count = 0; var textView = MainWindow.Instance.ActiveTextView; if (textView == null) { return(false); } var location = textView.TextEditor.TextArea.Caret.Location; var ilbps = BreakpointHelper.GetILCodeBreakpoints(textView, location.Line, location.Column); count = ilbps.Count; return(BreakpointHelper.IsEnabled(ilbps)); }
public bool DisableBreakpoint() { if (!CanDisableBreakpoint) { return(false); } var textView = MainWindow.Instance.ActiveTextView; if (textView == null) { return(false); } var location = textView.TextEditor.TextArea.Caret.Location; var ilbps = BreakpointHelper.GetILCodeBreakpoints(textView, location.Line, location.Column); bool isEnabled = BreakpointHelper.IsEnabled(ilbps); foreach (var ilbp in ilbps) { ilbp.IsEnabled = !isEnabled; } return(ilbps.Count > 0); }