Пример #1
0
        public void RemoveBreakpoint(BreakpointBookmark breakpoint)
        {
            Breakpoint debuggerBreakpoint = Breakpoints.GetBreakpointByBookmark(breakpoint);

            if (debuggerBreakpoint != null)
            {
                debuggerBreakpoint.Enabled = false;
            }
        }
Пример #2
0
        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;
            }
        }