public async Task <IRBreakpoint> CreateBreakpointAsync(RSourceLocation location, CancellationToken cancellationToken = default(CancellationToken)) { ThrowIfDisposed(); await TaskUtilities.SwitchToBackgroundThread(); await InitializeAsync(cancellationToken); RBreakpoint bp; if (!_breakpoints.TryGetValue(location, out bp)) { bp = new RBreakpoint(this, location); _breakpoints.Add(location, bp); } await bp.SetBreakpointAsync(cancellationToken); return(bp); }
internal void RemoveBreakpoint(RBreakpoint breakpoint) { Trace.Assert(breakpoint.Tracer == this); _breakpoints.Remove(breakpoint.Location); }
public async Task<IRBreakpoint> CreateBreakpointAsync(RSourceLocation location, CancellationToken cancellationToken = default(CancellationToken)) { ThrowIfDisposed(); await TaskUtilities.SwitchToBackgroundThread(); await InitializeAsync(cancellationToken); RBreakpoint bp; if (!_breakpoints.TryGetValue(location, out bp)) { bp = new RBreakpoint(this, location); _breakpoints.Add(location, bp); } await bp.SetBreakpointAsync(cancellationToken); return bp; }
internal void RemoveBreakpoint(RBreakpoint breakpoint) { Trace.Assert(breakpoint.Tracer == this); _breakpoints.Remove(breakpoint.Location); }