eric6/Debugger/StartDialog.py

branch
multi_processing
changeset 7409
1413bfe73d41
parent 7360
9190402e4505
child 7411
6d8dcb3551b3
--- a/eric6/Debugger/StartDialog.py	Mon Feb 10 19:49:45 2020 +0100
+++ b/eric6/Debugger/StartDialog.py	Tue Feb 11 18:58:38 2020 +0100
@@ -29,7 +29,7 @@
                  exceptions,
                  parent=None, dialogType=0, modfuncList=None,
                  tracePython=False, autoClearShell=True, autoContinue=True,
-                 autoFork=False, forkChild=False):
+                 autoFork=False, forkChild=False, enableMultiprocess=False):
         """
         Constructor
         
@@ -56,20 +56,23 @@
                 <li>3 = start profile dialog</li>
                 </ul>
         @type int (0 to 3)
-        @keyparam modfuncList history list of module functions
+        @param modfuncList history list of module functions
         @type list of str
-        @keyparam tracePython flag indicating if the Python library should
+        @param tracePython flag indicating if the Python library should
             be traced as well
         @type bool
-        @keyparam autoClearShell flag indicating, that the interpreter window
+        @param autoClearShell flag indicating, that the interpreter window
             should be cleared automatically
         @type bool
-        @keyparam autoContinue flag indicating, that the debugger should not
+        @param autoContinue flag indicating, that the debugger should not
             stop at the first executable line
         @type bool
-        @keyparam autoFork flag indicating the automatic fork mode
+        @param autoFork flag indicating the automatic fork mode
         @type bool
-        @keyparam forkChild flag indicating to debug the child after forking
+        @param forkChild flag indicating to debug the child after forking
+        @type bool
+        @param enableMultiprocess flag indicating the support for multi process
+            debugging
         @type bool
         """
         super(StartDialog, self).__init__(parent)
@@ -132,6 +135,7 @@
             self.ui.autoContinueCheckBox.setChecked(autoContinue)
             self.ui.forkModeCheckBox.setChecked(autoFork)
             self.ui.forkChildCheckBox.setChecked(forkChild)
+            self.ui.multiprocessEnableCheckBox.setChecked(enableMultiprocess)
         
         if dialogType == 1:       # start run dialog
             self.ui.forkModeCheckBox.setChecked(autoFork)
@@ -191,9 +195,10 @@
             return (self.ui.tracePythonCheckBox.isChecked(),
                     self.ui.autoContinueCheckBox.isChecked(),
                     self.ui.forkModeCheckBox.isChecked(),
-                    self.ui.forkChildCheckBox.isChecked())
+                    self.ui.forkChildCheckBox.isChecked(),
+                    self.ui.multiprocessEnableCheckBox.isChecked())
         else:
-            return (False, False, False, False)
+            return (False, False, False, False, False)
         
     def getRunData(self):
         """

eric ide

mercurial