eric6/Debugger/StartDialog.py

branch
multi_processing
changeset 7874
8dcb77600690
parent 7856
82c461fa8a68
child 7882
617cc27f11af
--- a/eric6/Debugger/StartDialog.py	Sun Dec 13 19:54:19 2020 +0100
+++ b/eric6/Debugger/StartDialog.py	Mon Dec 14 19:23:25 2020 +0100
@@ -28,8 +28,7 @@
                  exceptions,
                  parent=None, dialogType=0, modfuncList=None,
                  tracePython=False, autoClearShell=True, autoContinue=True,
-                 autoFork=False, forkChild=False, enableMultiprocess=False,
-                 multiprocessNoDebugHistory=None):
+                 enableMultiprocess=False, multiprocessNoDebugHistory=None):
         """
         Constructor
         
@@ -67,10 +66,6 @@
         @param autoContinue flag indicating, that the debugger should not
             stop at the first executable line
         @type bool
-        @param autoFork flag indicating the automatic fork mode
-        @type bool
-        @param forkChild flag indicating to debug the child after forking
-        @type bool
         @param enableMultiprocess flag indicating the support for multi process
             debugging
         @type bool
@@ -138,8 +133,6 @@
             self.ui.tracePythonCheckBox.setChecked(tracePython)
             self.ui.tracePythonCheckBox.show()
             self.ui.autoContinueCheckBox.setChecked(autoContinue)
-            self.ui.forkModeCheckBox.setChecked(autoFork)
-            self.ui.forkChildCheckBox.setChecked(forkChild)
             self.ui.multiprocessGroup.setEnabled(enableMultiprocessGlobal)
             self.ui.multiprocessGroup.setChecked(
                 enableMultiprocess & enableMultiprocessGlobal)
@@ -149,10 +142,6 @@
                     multiprocessNoDebugHistory)
                 self.ui.multiprocessNoDebugCombo.setCurrentIndex(0)
         
-        if dialogType == 1:       # start run dialog
-            self.ui.forkModeCheckBox.setChecked(autoFork)
-            self.ui.forkChildCheckBox.setChecked(forkChild)
-        
         if dialogType == 3:       # start coverage or profile dialog
             self.ui.eraseCheckBox.setChecked(True)
         
@@ -198,39 +187,19 @@
         
         @return a tuple of a flag indicating, if the Python library should be
             traced as well, a flag indicating, that the debugger should not
-            stop at the first executable line, a flag indicating, that the
-            debugger should fork automatically, a flag indicating, that the
-            debugger should debug the child process after forking
-            automatically, a flag indicating to support multi process debugging
-            and a space separated list of programs not to be debugged
-        @rtype tuple of (bool, bool, bool, bool, bool, str)
+            stop at the first executable line, a flag indicating to support
+            multi process debugging and a space separated list of programs not
+            to be debugged
+        @rtype tuple of (bool, bool, bool, str)
         """
         if self.dialogType == 0:
             return (self.ui.tracePythonCheckBox.isChecked(),
                     self.ui.autoContinueCheckBox.isChecked(),
-                    self.ui.forkModeCheckBox.isChecked(),
-                    self.ui.forkChildCheckBox.isChecked(),
                     self.ui.multiprocessGroup.isChecked(),
                     self.ui.multiprocessNoDebugCombo.currentText())
         else:
-            return (False, False, False, False, False, [])
-        
-    def getRunData(self):
-        """
-        Public method to retrieve the debug related data entered into this
-        dialog.
-        
-        @return a tuple of a flag indicating, that the debugger should fork
-            automatically (boolean) and a flag indicating, that the debugger
-            should debug the child process after forking automatically
-            (boolean)
-        """
-        if self.dialogType == 1:
-            return (self.ui.forkModeCheckBox.isChecked(),
-                    self.ui.forkChildCheckBox.isChecked())
-        else:
-            return (False, False)
-        
+            return (False, False, False, "")
+    
     def getCoverageData(self):
         """
         Public method to retrieve the coverage related data entered into this

eric ide

mercurial