Inheritance: IRBreakpoint
Example #1
0
        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);
        }
Example #2
0
 internal void RemoveBreakpoint(RBreakpoint breakpoint) {
     Trace.Assert(breakpoint.Tracer == this);
     _breakpoints.Remove(breakpoint.Location);
 }
Example #3
0
        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;
        }
Example #4
0
 internal void RemoveBreakpoint(RBreakpoint breakpoint)
 {
     Trace.Assert(breakpoint.Tracer == this);
     _breakpoints.Remove(breakpoint.Location);
 }