eric6/Debugger/DebuggerInterfacePython.py

branch
multi_processing
changeset 7871
eb65864ca038
parent 7869
81561b95f9f3
child 7872
433dacbfa456
diff -r ab8f95bc7d2d -r eb65864ca038 eric6/Debugger/DebuggerInterfacePython.py
--- a/eric6/Debugger/DebuggerInterfacePython.py	Mon Dec 07 19:53:15 2020 +0100
+++ b/eric6/Debugger/DebuggerInterfacePython.py	Thu Dec 10 20:16:21 2020 +0100
@@ -14,7 +14,6 @@
 from PyQt5.QtCore import (
     QObject, QProcess, QProcessEnvironment, QTimer
 )
-from PyQt5.QtWidgets import QInputDialog
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
@@ -667,6 +666,7 @@
             self.__sendJsonCommand("RequestEnvironment", {"environment": env},
                                    self.__master)
     
+    # TODO: remove autoFork and forkChild
     def remoteLoad(self, fn, argv, wd, traceInterpreter=False,
                    autoContinue=True, autoFork=False, forkChild=False,
                    enableMultiprocess=False):
@@ -708,6 +708,7 @@
             "multiprocess": enableMultiprocess,
         }, self.__master)
     
+    # TODO: remove autoFork and forkChild
     def remoteRun(self, fn, argv, wd, autoFork=False, forkChild=False):
         """
         Public method to load a new program to run.
@@ -1290,31 +1291,6 @@
         """
         self.__sendJsonCommand("RequestUTStop", {})
     
-    def __askForkTo(self, debuggerId):
-        """
-        Private method to ask the user which branch of a fork to follow.
-        
-        @param debuggerId ID of the debugger backend
-        @type str
-        """
-        selections = [self.tr("Parent Process"),
-                      self.tr("Child process")]
-        res, ok = QInputDialog.getItem(
-            None,
-            self.tr("Client forking"),
-            self.tr("Select the fork branch to follow (Debugger: {0}).")
-            .format(debuggerId),
-            selections,
-            0, False)
-        if not ok or res == selections[0]:
-            self.__sendJsonCommand("ResponseForkTo", {
-                "target": "parent",
-            }, debuggerId)
-        else:
-            self.__sendJsonCommand("ResponseForkTo", {
-                "target": "child",
-            }, debuggerId)
-    
     def __parseClientLine(self, sock):
         """
         Private method to handle data from the client.
@@ -1561,9 +1537,6 @@
         elif method == "ResponseUTTestSucceededUnexpected":
             self.debugServer.clientUtTestSucceededUnexpected(
                 params["testname"], params["id"])
-        
-        elif method == "RequestForkTo":
-            self.__askForkTo(params["debuggerId"])
     
     def __sendJsonCommand(self, command, params, debuggerId="", sock=None):
         """

eric ide

mercurial