/// <summary>
 /// Create a new <see cref="BreakpointReadActionServer"/>.
 /// </summary>
 /// <param name="server">The breakpoint server to communicate with.</param>
 /// <param name="cts"> A cancellation token source to cancel if the server receives a shutdown command.</param>
 /// <param name="client">The debugger client to send updated breakpoints to.</param>
 /// <param name="breakpointManager">A shared breakpoint manager.</param>
 public BreakpointReadActionServer(IBreakpointServer server, CancellationTokenSource cts,
                                   IDebuggerClient debuggerClient, ILoggingClient loggingClient,
                                   BreakpointManager breakpointManager) : base(server, cts)
 {
     _debuggerClient    = GaxPreconditions.CheckNotNull(debuggerClient, nameof(debuggerClient));
     _loggingClient     = GaxPreconditions.CheckNotNull(loggingClient, nameof(loggingClient));
     _breakpointManager = GaxPreconditions.CheckNotNull(breakpointManager, nameof(breakpointManager));
 }
コード例 #2
0
        private NodeDebugger() {
            _connection = new DebuggerConnection(new NetworkClientFactory());
            _connection.ConnectionClosed += OnConnectionClosed;

            _client = new DebuggerClient(_connection);
            _client.BreakpointEvent += OnBreakpointEvent;
            _client.CompileScriptEvent += OnCompileScriptEvent;
            _client.ExceptionEvent += OnExceptionEvent;

            _resultFactory = new EvaluationResultFactory();
            _exceptionHandler = new ExceptionHandler();
            _sourceMapper = new SourceMapper();
            _fileNameMapper = new LocalFileNameMapper();
        }
 /// <summary>
 /// Create a new <see cref="BreakpointWriteActionServer"/>.
 /// </summary>
 /// <param name="server">The breakpoint server to communicate with.</param>
 /// <param name="cts"> A cancellation token source to cancel if the server receives a shutdown command.</param>
 /// <param name="client">The debugger client to send updated breakpoints to.</param>
 /// <param name="breakpointManager">A shared breakpoint manager.</param>
 public BreakpointWriteActionServer(IBreakpointServer server, CancellationTokenSource cts,
                                    IDebuggerClient client, BreakpointManager breakpointManager) : base(server, cts)
 {
     _client            = GaxPreconditions.CheckNotNull(client, nameof(client));
     _breakpointManager = GaxPreconditions.CheckNotNull(breakpointManager, nameof(breakpointManager));
 }
コード例 #4
0
 public CoverageSession(IDebuggerClient debuggerClient, string infobaseAlias) =>