eric6/Debugger/DebugUI.py

changeset 7759
51aa6c6b66f7
parent 7707
6abcf4275d0e
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
1362 1362
1363 from .EditBreakpointDialog import EditBreakpointDialog 1363 from .EditBreakpointDialog import EditBreakpointDialog
1364 dlg = EditBreakpointDialog( 1364 dlg = EditBreakpointDialog(
1365 (fn, line), (cond, temp, enabled, count), 1365 (fn, line), (cond, temp, enabled, count),
1366 [], self.ui, modal=True) 1366 [], self.ui, modal=True)
1367 if dlg.exec_() == QDialog.Accepted: 1367 if dlg.exec() == QDialog.Accepted:
1368 cond, temp, enabled, count = dlg.getData() 1368 cond, temp, enabled, count = dlg.getData()
1369 model.setBreakPointByIndex(index, fn, line, 1369 model.setBreakPointByIndex(index, fn, line,
1370 (cond, temp, enabled, count)) 1370 (cond, temp, enabled, count))
1371 1371
1372 def __clientWatchConditionError(self, cond): 1372 def __clientWatchConditionError(self, cond):
1396 cond, special, temp, enabled, count = wp[:5] 1396 cond, special, temp, enabled, count = wp[:5]
1397 1397
1398 from .EditWatchpointDialog import EditWatchpointDialog 1398 from .EditWatchpointDialog import EditWatchpointDialog
1399 dlg = EditWatchpointDialog( 1399 dlg = EditWatchpointDialog(
1400 (cond, temp, enabled, count, special), self.ui) 1400 (cond, temp, enabled, count, special), self.ui)
1401 if dlg.exec_() == QDialog.Accepted: 1401 if dlg.exec() == QDialog.Accepted:
1402 cond, temp, enabled, count, special = dlg.getData() 1402 cond, temp, enabled, count, special = dlg.getData()
1403 1403
1404 # check for duplicates 1404 # check for duplicates
1405 idx = model.getWatchPointIndex(cond, special) 1405 idx = model.getWatchPointIndex(cond, special)
1406 duplicate = (idx.isValid() and 1406 duplicate = (idx.isValid() and
1431 Private slot for displaying the variables filter configuration dialog. 1431 Private slot for displaying the variables filter configuration dialog.
1432 """ 1432 """
1433 from .VariablesFilterDialog import VariablesFilterDialog 1433 from .VariablesFilterDialog import VariablesFilterDialog
1434 dlg = VariablesFilterDialog(self.ui, 'Filter Dialog', True) 1434 dlg = VariablesFilterDialog(self.ui, 'Filter Dialog', True)
1435 dlg.setSelection(self.localsVarFilter, self.globalsVarFilter) 1435 dlg.setSelection(self.localsVarFilter, self.globalsVarFilter)
1436 if dlg.exec_() == QDialog.Accepted: 1436 if dlg.exec() == QDialog.Accepted:
1437 self.localsVarFilter, self.globalsVarFilter = dlg.getSelection() 1437 self.localsVarFilter, self.globalsVarFilter = dlg.getSelection()
1438 self.debugViewer.setVariablesFilter( 1438 self.debugViewer.setVariablesFilter(
1439 self.globalsVarFilter, self.localsVarFilter) 1439 self.globalsVarFilter, self.localsVarFilter)
1440 1440
1441 def __configureExceptionsFilter(self): 1441 def __configureExceptionsFilter(self):
1442 """ 1442 """
1443 Private slot for displaying the exception filter dialog. 1443 Private slot for displaying the exception filter dialog.
1444 """ 1444 """
1445 from .ExceptionsFilterDialog import ExceptionsFilterDialog 1445 from .ExceptionsFilterDialog import ExceptionsFilterDialog
1446 dlg = ExceptionsFilterDialog(self.excList, ignore=False) 1446 dlg = ExceptionsFilterDialog(self.excList, ignore=False)
1447 if dlg.exec_() == QDialog.Accepted: 1447 if dlg.exec() == QDialog.Accepted:
1448 self.excList = dlg.getExceptionsList()[:] # keep a copy 1448 self.excList = dlg.getExceptionsList()[:] # keep a copy
1449 1449
1450 def __configureIgnoredExceptions(self): 1450 def __configureIgnoredExceptions(self):
1451 """ 1451 """
1452 Private slot for displaying the ignored exceptions dialog. 1452 Private slot for displaying the ignored exceptions dialog.
1453 """ 1453 """
1454 from .ExceptionsFilterDialog import ExceptionsFilterDialog 1454 from .ExceptionsFilterDialog import ExceptionsFilterDialog
1455 dlg = ExceptionsFilterDialog(self.excIgnoreList, ignore=True) 1455 dlg = ExceptionsFilterDialog(self.excIgnoreList, ignore=True)
1456 if dlg.exec_() == QDialog.Accepted: 1456 if dlg.exec() == QDialog.Accepted:
1457 self.excIgnoreList = dlg.getExceptionsList()[:] # keep a copy 1457 self.excIgnoreList = dlg.getExceptionsList()[:] # keep a copy
1458 1458
1459 def __toggleBreakpoint(self): 1459 def __toggleBreakpoint(self):
1460 """ 1460 """
1461 Private slot to handle the 'Set/Reset breakpoint' action. 1461 Private slot to handle the 'Set/Reset breakpoint' action.
1573 cap = self.tr("Coverage of Script") 1573 cap = self.tr("Coverage of Script")
1574 dlg = StartDialog( 1574 dlg = StartDialog(
1575 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 1575 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
1576 self.envHistory, self.exceptions, self.ui, 2, 1576 self.envHistory, self.exceptions, self.ui, 2,
1577 autoClearShell=self.autoClearShell) 1577 autoClearShell=self.autoClearShell)
1578 if dlg.exec_() == QDialog.Accepted: 1578 if dlg.exec() == QDialog.Accepted:
1579 (lastUsedVenvName, argv, wd, env, exceptions, clearShell, 1579 (lastUsedVenvName, argv, wd, env, exceptions, clearShell,
1580 console) = dlg.getData() 1580 console) = dlg.getData()
1581 eraseCoverage = dlg.getCoverageData() 1581 eraseCoverage = dlg.getCoverageData()
1582 1582
1583 if runProject: 1583 if runProject:
1708 cap = self.tr("Profile of Script") 1708 cap = self.tr("Profile of Script")
1709 dlg = StartDialog( 1709 dlg = StartDialog(
1710 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 1710 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
1711 self.envHistory, self.exceptions, self.ui, 3, 1711 self.envHistory, self.exceptions, self.ui, 3,
1712 autoClearShell=self.autoClearShell) 1712 autoClearShell=self.autoClearShell)
1713 if dlg.exec_() == QDialog.Accepted: 1713 if dlg.exec() == QDialog.Accepted:
1714 (lastUsedVenvName, argv, wd, env, exceptions, clearShell, 1714 (lastUsedVenvName, argv, wd, env, exceptions, clearShell,
1715 console) = dlg.getData() 1715 console) = dlg.getData()
1716 eraseTimings = dlg.getProfilingData() 1716 eraseTimings = dlg.getProfilingData()
1717 1717
1718 if runProject: 1718 if runProject:
1845 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 1845 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
1846 self.envHistory, self.exceptions, self.ui, 1, 1846 self.envHistory, self.exceptions, self.ui, 1,
1847 autoClearShell=self.autoClearShell, 1847 autoClearShell=self.autoClearShell,
1848 autoFork=self.forkAutomatically, 1848 autoFork=self.forkAutomatically,
1849 forkChild=self.forkIntoChild) 1849 forkChild=self.forkIntoChild)
1850 if dlg.exec_() == QDialog.Accepted: 1850 if dlg.exec() == QDialog.Accepted:
1851 (lastUsedVenvName, argv, wd, env, exceptions, clearShell, 1851 (lastUsedVenvName, argv, wd, env, exceptions, clearShell,
1852 console) = dlg.getData() 1852 console) = dlg.getData()
1853 forkAutomatically, forkIntoChild = dlg.getRunData() 1853 forkAutomatically, forkIntoChild = dlg.getRunData()
1854 1854
1855 if runProject: 1855 if runProject:
1984 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 1984 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
1985 self.envHistory, self.exceptions, self.ui, 0, 1985 self.envHistory, self.exceptions, self.ui, 0,
1986 tracePython=self.tracePython, autoClearShell=self.autoClearShell, 1986 tracePython=self.tracePython, autoClearShell=self.autoClearShell,
1987 autoContinue=self.autoContinue, autoFork=self.forkAutomatically, 1987 autoContinue=self.autoContinue, autoFork=self.forkAutomatically,
1988 forkChild=self.forkIntoChild) 1988 forkChild=self.forkIntoChild)
1989 if dlg.exec_() == QDialog.Accepted: 1989 if dlg.exec() == QDialog.Accepted:
1990 (lastUsedVenvName, argv, wd, env, exceptions, clearShell, 1990 (lastUsedVenvName, argv, wd, env, exceptions, clearShell,
1991 console) = dlg.getData() 1991 console) = dlg.getData()
1992 tracePython, autoContinue, forkAutomatically, forkIntoChild = ( 1992 tracePython, autoContinue, forkAutomatically, forkIntoChild = (
1993 dlg.getDebugData()) 1993 dlg.getDebugData())
1994 1994

eric ide

mercurial