--- a/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Tue Feb 13 09:50:09 2024 +0100 +++ b/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Tue Feb 13 11:17:38 2024 +0100 @@ -115,8 +115,7 @@ address=address, handler=self.__serviceDbgClientConnection, ) - events = selectors.EVENT_READ - self.__server.getSelector().register(connection, events, data=data) + self.__server.getSelector().register(connection, selectors.EVENT_READ, data=data) def __serviceDbgClientConnection(self, key): """ @@ -200,22 +199,6 @@ params={"debugger_id": self.__mainClientId if self.__mainClientId else ""}, ) - def __serviceDbgClientStdoutStderr(self, key): - """ - Private method to service the debug client stdout and stderr channels. - - @param key reference to the SelectorKey object associated with the connection - to be serviced - @type selectors.SelectorKey - """ - data = key.fileobj.read() - if key.data.name == "debug_client_stdout": - # TODO: stdout handling not implemented yet - print("stdout:", data) - elif key.data.name == "debug_client_stderr": - # TODO: stderr handling not implemented yet - print("stderr:", data) - def shutdownClients(self): """ Public method to shut down all connected clients. @@ -290,12 +273,7 @@ """ self.__inStartClient = True - # 1. stop an already started debug client - if self.__client is not None: - # TODO: unregister stdin & stderr - pass - - # 2. start a debug client + # start a debug client debugClient = os.path.abspath( os.path.join( os.path.dirname(__file__), @@ -313,9 +291,6 @@ self.__client = subprocess.Popen( args, stdout=subprocess.PIPE, stderr=subprocess.PIPE ) - # TODO: register stdin & stderr with selector - - self.__inStartClient = False def __stopClient(self, params): # noqa: U100 """