public void RemoveBreakpoint(BreakpointBookmark breakpoint) { Breakpoint debuggerBreakpoint = Breakpoints.GetBreakpointByBookmark(breakpoint); if (debuggerBreakpoint != null) { debuggerBreakpoint.Enabled = false; } }
public void AddBreakpoint(BreakpointBookmark breakpoint) { Breakpoint debuggerBreakpoint = Breakpoints.GetBreakpointByBookmark(breakpoint); if (debuggerBreakpoint == null) { var module = FindModule(x => x.Symbols != null); if (module == null) { PendingBreakpoints.Add(breakpoint); } else { module.TrySetBreakpoint(breakpoint); } } if (debuggerBreakpoint != null) { debuggerBreakpoint.Enabled = true; } }