--- a/eric6/Debugger/StartDialog.py Sun Mar 14 13:49:55 2021 +0100 +++ b/eric6/Debugger/StartDialog.py Sun Mar 14 19:59:27 2021 +0100 @@ -30,7 +30,8 @@ exceptions, parent=None, dialogType=0, modfuncList=None, tracePython=False, autoClearShell=True, autoContinue=True, - enableMultiprocess=False, multiprocessNoDebugHistory=None): + enableMultiprocess=False, multiprocessNoDebugHistory=None, + enableConfigOverride=False, enableRedirect=True): """ Constructor @@ -74,6 +75,11 @@ @param multiprocessNoDebugHistory list of lists with programs not to be debugged @type list of str + @param enableConfigOverride flag indicating to enable global config + override + @type bool + @param enableRedirect flag indicating to redirect stdin/stdout/stderr + @type bool """ super(StartDialog, self).__init__(parent) self.setModal(True) @@ -129,6 +135,8 @@ self.ui.consoleCheckBox.setChecked(False) venvIndex = max(0, self.ui.venvComboBox.findText(lastUsedVenvName)) self.ui.venvComboBox.setCurrentIndex(venvIndex) + self.ui.globalOverrideGroup.setChecked(enableConfigOverride) + self.ui.redirectCheckBox.setChecked(enableRedirect) if dialogType == 0: # start debug dialog enableMultiprocessGlobal = Preferences.getDebugger( @@ -187,7 +195,21 @@ self.ui.clearShellCheckBox.isChecked(), self.ui.consoleCheckBox.isChecked(), ) + + def getGlobalOverrideData(self): + """ + Public method to retrieve the global configuration override data + entered into this dialog. + @return tuple containing a flag indicating to activate the global + override and a flag indicating a redirect of stdin/stdout/stderr + @rtype tuple of (bool, bool) + """ + return ( + self.ui.globalOverrideGroup.isChecked(), + self.ui.redirectCheckBox.isChecked(), + ) + def getDebugData(self): """ Public method to retrieve the debug related data entered into this