src/eric7/Debugger/StartDialog.py

branch
eric7
changeset 9291
7b271bcd12d0
parent 9221
bf71ee032bb4
child 9305
3b7ef53c34c7
child 9388
bfe7ea6599a3
equal deleted inserted replaced
9290:fc0cbfb71714 9291:7b271bcd12d0
33 lastUsedVenvName, 33 lastUsedVenvName,
34 argvList, 34 argvList,
35 wdList, 35 wdList,
36 envList, 36 envList,
37 exceptions, 37 exceptions,
38 unhandledExceptions,
38 parent=None, 39 parent=None,
39 dialogType=0, 40 dialogType=0,
40 modfuncList=None, 41 modfuncList=None,
41 tracePython=False, 42 tracePython=False,
42 autoClearShell=True, 43 autoClearShell=True,
62 @type list of str 63 @type list of str
63 @param envList history list of environment parameter settings 64 @param envList history list of environment parameter settings
64 @type list of str 65 @type list of str
65 @param exceptions exception reporting flag 66 @param exceptions exception reporting flag
66 @type bool 67 @type bool
68 @param unhandledExceptions flag indicating to always report unhandled exceptions
69 @type bool
67 @param parent parent widget of this dialog 70 @param parent parent widget of this dialog
68 @type QWidget 71 @type QWidget
69 @param dialogType type of the start dialog 72 @param dialogType type of the start dialog
70 <ul> 73 <ul>
71 <li>0 = start debug dialog</li> 74 <li>0 = start debug dialog</li>
172 if len(wdList) > 0: 175 if len(wdList) > 0:
173 self.ui.workdirPicker.setCurrentIndex(0) 176 self.ui.workdirPicker.setCurrentIndex(0)
174 self.ui.environmentCombo.clear() 177 self.ui.environmentCombo.clear()
175 self.ui.environmentCombo.addItems(envList) 178 self.ui.environmentCombo.addItems(envList)
176 self.ui.exceptionCheckBox.setChecked(exceptions) 179 self.ui.exceptionCheckBox.setChecked(exceptions)
180 self.ui.unhandledExceptionCheckBox.setChecked(unhandledExceptions)
177 self.ui.clearShellCheckBox.setChecked(autoClearShell) 181 self.ui.clearShellCheckBox.setChecked(autoClearShell)
178 self.ui.consoleCheckBox.setEnabled( 182 self.ui.consoleCheckBox.setEnabled(
179 Preferences.getDebugger("ConsoleDbgCommand") != "" 183 Preferences.getDebugger("ConsoleDbgCommand") != ""
180 ) 184 )
181 self.ui.consoleCheckBox.setChecked(False) 185 self.ui.consoleCheckBox.setChecked(False)
227 def getData(self): 231 def getData(self):
228 """ 232 """
229 Public method to retrieve the data entered into this dialog. 233 Public method to retrieve the data entered into this dialog.
230 234
231 @return a tuple of virtual environment, script name, argv, workdir, 235 @return a tuple of virtual environment, script name, argv, workdir,
232 environment, exceptions flag, clear interpreter flag and run in 236 environment, exceptions flag, unhandled exceptions flag, clear interpreter
233 console flag 237 flag and run in console flag
234 @rtype tuple of (str, str, str, str, str, bool, bool, bool) 238 @rtype tuple of (str, str, str, str, str, bool, bool, bool, bool)
235 """ 239 """
236 cmdLine = self.ui.cmdlineCombo.currentText() 240 cmdLine = self.ui.cmdlineCombo.currentText()
237 workdir = self.ui.workdirPicker.currentText(toNative=False) 241 workdir = self.ui.workdirPicker.currentText(toNative=False)
238 environment = self.ui.environmentCombo.currentText() 242 environment = self.ui.environmentCombo.currentText()
239 venvName = self.ui.venvComboBox.currentText() 243 venvName = self.ui.venvComboBox.currentText()
248 scriptName, 252 scriptName,
249 cmdLine, 253 cmdLine,
250 workdir, 254 workdir,
251 environment, 255 environment,
252 self.ui.exceptionCheckBox.isChecked(), 256 self.ui.exceptionCheckBox.isChecked(),
257 self.ui.unhandledExceptionCheckBox.isChecked(),
253 self.ui.clearShellCheckBox.isChecked(), 258 self.ui.clearShellCheckBox.isChecked(),
254 self.ui.consoleCheckBox.isChecked(), 259 self.ui.consoleCheckBox.isChecked(),
255 ) 260 )
256 261
257 def getGlobalOverrideData(self): 262 def getGlobalOverrideData(self):

eric ide

mercurial