src/eric7/RemoteServerInterface/EricServerDebuggerInterface.py

branch
eric7
changeset 10962
b56b76c0221b
parent 10636
24d9e6ff8111
child 11090
f5f5f5803935
diff -r 7bbf95f41266 -r b56b76c0221b src/eric7/RemoteServerInterface/EricServerDebuggerInterface.py
--- a/src/eric7/RemoteServerInterface/EricServerDebuggerInterface.py	Wed Oct 09 17:50:11 2024 +0200
+++ b/src/eric7/RemoteServerInterface/EricServerDebuggerInterface.py	Wed Oct 09 18:18:00 2024 +0200
@@ -49,6 +49,7 @@
             "DebugClientDisconnected": self.__handleDbgClientDisconnected,
             "LastDebugClientExited": self.__handleLastDbgClientExited,
             "MainClientExited": self.__handleMainClientExited,
+            "StartClientError": self.__handleStartClientError,
         }
 
         # connect some signals
@@ -154,6 +155,22 @@
         self.__clientStarted = False
         ericApp().getObject("DebugServer").signalMainClientExit()
 
+    def __handleStartClientError(self, params):
+        """
+        Private method to handle an error starting the remote debug client.
+
+        @param params dictionary containing the reply data
+        @type dict
+        """
+        EricMessageBox.warning(
+            None,
+            self.tr("Start Debug Client"),
+            self.tr(
+                "<p>The debug client of the 'eric-ide' server could not be started.</p>"
+                "<p>Error: {0}</p>"
+            ).format(params["Error"]),
+        )
+
     #######################################################################
     ## Methods for sending debug server commands to the eric-ide server.
     #######################################################################

eric ide

mercurial