Пример #1
0
        public IDebugController CreateDebugController()
        {
            var listener        = TcpListener.Create(_port);
            var channel         = new DelayedConnectionChannel(listener);
            var ipcServer       = new DefaultMessageServer <RpcCall>(channel);
            var callback        = new TcpEventCallbackChannel(channel);
            var threadManager   = new ThreadManager();
            var breakpoints     = new DefaultBreakpointManager();
            var debuggerService = new DefaultDebugService(breakpoints, threadManager, new DefaultVariableVisualizer());
            var controller      = new DefaultDebugController(ipcServer, debuggerService, callback, threadManager, breakpoints);

            return(controller);
        }
Пример #2
0
        private void RunEventsListener(ICommunicationChannel channelToListen)
        {
            var server = new DefaultMessageServer <TcpProtocolDtoBase>(channelToListen);

            _processor = new RpcProcessor(server);
            _processor.AddChannel(
                nameof(IDebugEventListener),
                typeof(IDebugEventListener),
                _eventBackChannel);

            _processor.AddChannel(
                nameof(IDebuggerService),
                typeof(IDebuggerService),
                this);

            _processor.Start();
        }