1739 if rs is not None |
1739 if rs is not None |
1740 else [] |
1740 else [] |
1741 ) |
1741 ) |
1742 |
1742 |
1743 dlg = EditBreakpointDialog( |
1743 dlg = EditBreakpointDialog( |
1744 (fn, line), (cond, temp, enabled, count), condHistory, self.ui, modal=True |
1744 (fn, line), |
|
1745 (cond, temp, enabled, count), |
|
1746 condHistory, |
|
1747 parent=self.ui, |
|
1748 modal=True, |
1745 ) |
1749 ) |
1746 if dlg.exec() == QDialog.DialogCode.Accepted: |
1750 if dlg.exec() == QDialog.DialogCode.Accepted: |
1747 cond, temp, enabled, count = dlg.getData() |
1751 cond, temp, enabled, count = dlg.getData() |
1748 model.setBreakPointByIndex(index, fn, line, (cond, temp, enabled, count)) |
1752 model.setBreakPointByIndex(index, fn, line, (cond, temp, enabled, count)) |
1749 |
1753 |
1788 if not wp: |
1792 if not wp: |
1789 return |
1793 return |
1790 |
1794 |
1791 cond, special, temp, enabled, count = wp[:5] |
1795 cond, special, temp, enabled, count = wp[:5] |
1792 |
1796 |
1793 dlg = EditWatchpointDialog((cond, temp, enabled, count, special), self.ui) |
1797 dlg = EditWatchpointDialog( |
|
1798 (cond, temp, enabled, count, special), parent=self.ui |
|
1799 ) |
1794 if dlg.exec() == QDialog.DialogCode.Accepted: |
1800 if dlg.exec() == QDialog.DialogCode.Accepted: |
1795 cond, temp, enabled, count, special = dlg.getData() |
1801 cond, temp, enabled, count, special = dlg.getData() |
1796 |
1802 |
1797 # check for duplicates |
1803 # check for duplicates |
1798 idx = model.getWatchPointIndex(cond, special) |
1804 idx = model.getWatchPointIndex(cond, special) |
1822 """ |
1828 """ |
1823 Private slot for displaying the variables filter configuration dialog. |
1829 Private slot for displaying the variables filter configuration dialog. |
1824 """ |
1830 """ |
1825 from .VariablesFilterDialog import VariablesFilterDialog |
1831 from .VariablesFilterDialog import VariablesFilterDialog |
1826 |
1832 |
1827 dlg = VariablesFilterDialog(self.ui, "Filter Dialog", True) |
1833 dlg = VariablesFilterDialog(parent=self.ui, name="Filter Dialog", modal=True) |
1828 dlg.applyFilterLists.connect(self.__applyVariablesFilters) |
1834 dlg.applyFilterLists.connect(self.__applyVariablesFilters) |
1829 dlg.setSelection(self.__localsVarFilterList, self.__globalsVarFilterList) |
1835 dlg.setSelection(self.__localsVarFilterList, self.__globalsVarFilterList) |
1830 if dlg.exec() == QDialog.DialogCode.Accepted: |
1836 if dlg.exec() == QDialog.DialogCode.Accepted: |
1831 self.__localsVarFilterList, self.__globalsVarFilterList = dlg.getSelection() |
1837 self.__localsVarFilterList, self.__globalsVarFilterList = dlg.getSelection() |
1832 self.__applyVariablesFilters( |
1838 self.__applyVariablesFilters( |
1850 """ |
1856 """ |
1851 Private slot for displaying the exception filter dialog. |
1857 Private slot for displaying the exception filter dialog. |
1852 """ |
1858 """ |
1853 from .ExceptionsFilterDialog import ExceptionsFilterDialog |
1859 from .ExceptionsFilterDialog import ExceptionsFilterDialog |
1854 |
1860 |
1855 dlg = ExceptionsFilterDialog(self.excList, ignore=False) |
1861 dlg = ExceptionsFilterDialog(self.excList, ignore=False, parent=self.ui) |
1856 if dlg.exec() == QDialog.DialogCode.Accepted: |
1862 if dlg.exec() == QDialog.DialogCode.Accepted: |
1857 self.excList = dlg.getExceptionsList()[:] # keep a copy |
1863 self.excList = dlg.getExceptionsList()[:] # keep a copy |
1858 |
1864 |
1859 def __configureIgnoredExceptions(self): |
1865 def __configureIgnoredExceptions(self): |
1860 """ |
1866 """ |
1861 Private slot for displaying the ignored exceptions dialog. |
1867 Private slot for displaying the ignored exceptions dialog. |
1862 """ |
1868 """ |
1863 from .ExceptionsFilterDialog import ExceptionsFilterDialog |
1869 from .ExceptionsFilterDialog import ExceptionsFilterDialog |
1864 |
1870 |
1865 dlg = ExceptionsFilterDialog(self.excIgnoreList, ignore=True) |
1871 dlg = ExceptionsFilterDialog(self.excIgnoreList, ignore=True, parent=self.ui) |
1866 if dlg.exec() == QDialog.DialogCode.Accepted: |
1872 if dlg.exec() == QDialog.DialogCode.Accepted: |
1867 self.excIgnoreList = dlg.getExceptionsList()[:] # keep a copy |
1873 self.excIgnoreList = dlg.getExceptionsList()[:] # keep a copy |
1868 |
1874 |
1869 def __toggleBreakpoint(self): |
1875 def __toggleBreakpoint(self): |
1870 """ |
1876 """ |
1994 cap, |
2000 cap, |
1995 self.lastUsedVenvName, |
2001 self.lastUsedVenvName, |
1996 self.argvHistory, |
2002 self.argvHistory, |
1997 self.wdHistory, |
2003 self.wdHistory, |
1998 self.envHistory, |
2004 self.envHistory, |
1999 self.ui, |
2005 parent=self.ui, |
2000 StartDialogMode.Coverage, |
2006 dialogMode=StartDialogMode.Coverage, |
2001 autoClearShell=self.autoClearShell, |
2007 autoClearShell=self.autoClearShell, |
2002 configOverride=self.overrideGlobalConfig, |
2008 configOverride=self.overrideGlobalConfig, |
2003 forProject=runProject, |
2009 forProject=runProject, |
2004 scriptName=scriptName, |
2010 scriptName=scriptName, |
2005 scriptsList=self.scriptsHistory, |
2011 scriptsList=self.scriptsHistory, |
2196 cap, |
2202 cap, |
2197 self.lastUsedVenvName, |
2203 self.lastUsedVenvName, |
2198 self.argvHistory, |
2204 self.argvHistory, |
2199 self.wdHistory, |
2205 self.wdHistory, |
2200 self.envHistory, |
2206 self.envHistory, |
2201 self.ui, |
2207 parent=self.ui, |
2202 StartDialogMode.Profile, |
2208 dialogMode=StartDialogMode.Profile, |
2203 autoClearShell=self.autoClearShell, |
2209 autoClearShell=self.autoClearShell, |
2204 configOverride=self.overrideGlobalConfig, |
2210 configOverride=self.overrideGlobalConfig, |
2205 forProject=runProject, |
2211 forProject=runProject, |
2206 scriptName=scriptName, |
2212 scriptName=scriptName, |
2207 scriptsList=self.scriptsHistory, |
2213 scriptsList=self.scriptsHistory, |
2394 cap, |
2400 cap, |
2395 self.lastUsedVenvName, |
2401 self.lastUsedVenvName, |
2396 self.argvHistory, |
2402 self.argvHistory, |
2397 self.wdHistory, |
2403 self.wdHistory, |
2398 self.envHistory, |
2404 self.envHistory, |
2399 self.ui, |
2405 parent=self.ui, |
2400 StartDialogMode.Run, |
2406 dialogMode=StartDialogMode.Run, |
2401 autoClearShell=self.autoClearShell, |
2407 autoClearShell=self.autoClearShell, |
2402 configOverride=self.overrideGlobalConfig, |
2408 configOverride=self.overrideGlobalConfig, |
2403 forProject=runProject, |
2409 forProject=runProject, |
2404 scriptName=scriptName, |
2410 scriptName=scriptName, |
2405 scriptsList=self.scriptsHistory, |
2411 scriptsList=self.scriptsHistory, |
2595 cap, |
2601 cap, |
2596 self.lastUsedVenvName, |
2602 self.lastUsedVenvName, |
2597 self.argvHistory, |
2603 self.argvHistory, |
2598 self.wdHistory, |
2604 self.wdHistory, |
2599 self.envHistory, |
2605 self.envHistory, |
2600 self.ui, |
2606 parent=self.ui, |
2601 StartDialogMode.Debug, |
2607 dialogMode=StartDialogMode.Debug, |
2602 tracePython=self.tracePython, |
2608 tracePython=self.tracePython, |
2603 autoClearShell=self.autoClearShell, |
2609 autoClearShell=self.autoClearShell, |
2604 autoContinue=self.autoContinue, |
2610 autoContinue=self.autoContinue, |
2605 reportAllExceptions=self.reportAllExceptions, |
2611 reportAllExceptions=self.reportAllExceptions, |
2606 enableMultiprocess=self.enableMultiprocess, |
2612 enableMultiprocess=self.enableMultiprocess, |