diff -r 0a02c433f52d -r 5883ce99ee12 Debugger/DebugUI.py --- a/Debugger/DebugUI.py Fri Nov 01 15:48:48 2013 +0100 +++ b/Debugger/DebugUI.py Sun Nov 03 15:58:22 2013 +0100 @@ -974,7 +974,7 @@ self.profileProjectAct.setEnabled(self.projectOpen) self.coverageProjectAct.setEnabled(self.projectOpen) if self.lastDebuggedFile is not None and \ - (self.editorOpen or self.projectOpen): + (self.editorOpen or self.projectOpen): self.restartAct.setEnabled(True) else: self.restartAct.setEnabled(False) @@ -1029,8 +1029,8 @@ else: msg = self.trUtf8('"{0}" has terminated with an exit' ' status of {1}.')\ - .format(os.path.basename(self.ui.currentProg), - status) + .format(os.path.basename(self.ui.currentProg), + status) self.ui.showNotification( UI.PixmapCache.getPixmap("debug48.png"), self.trUtf8("Program terminated"), msg) @@ -1105,9 +1105,9 @@ ' See the shell window for details.')) return - if (self.exceptions and \ - exceptionType not in self.excIgnoreList and \ - (not len(self.excList) or \ + if (self.exceptions and + exceptionType not in self.excIgnoreList and + (not len(self.excList) or (len(self.excList) and exceptionType in self.excList)))\ or exceptionType.startswith('unhandled'): res = None @@ -1132,12 +1132,12 @@ if stackTrace: if exceptionType.startswith('unhandled'): buttons = E5MessageBox.StandardButtons( - E5MessageBox.No | \ + E5MessageBox.No | E5MessageBox.Yes) else: buttons = E5MessageBox.StandardButtons( - E5MessageBox.No | \ - E5MessageBox.Yes | \ + E5MessageBox.No | + E5MessageBox.Yes | E5MessageBox.Ignore) res = E5MessageBox.critical( self.ui, Program, @@ -1146,11 +1146,11 @@ ' <b>{0}</b><br>"<b>{1}</b>"<br>' 'File: <b>{2}</b>, Line: <b>{3}</b></p>' '<p>Break here?</p>') - .format( - exceptionType, - Utilities.html_encode(exceptionMessage), - stackTrace[0][0], - stackTrace[0][1]), + .format( + exceptionType, + Utilities.html_encode(exceptionMessage), + stackTrace[0][0], + stackTrace[0][1]), buttons, E5MessageBox.No) else: @@ -1159,9 +1159,9 @@ self.trUtf8( '<p>The debugged program raised the exception' ' <b>{0}</b><br>"<b>{1}</b>"</p>') - .format( - exceptionType, - Utilities.html_encode(exceptionMessage))) + .format( + exceptionType, + Utilities.html_encode(exceptionMessage))) if res == E5MessageBox.Yes: self.exceptionInterrupt.emit() stack = [] @@ -1269,8 +1269,8 @@ self.trUtf8("Breakpoint Condition Error"), self.trUtf8( """<p>The condition of the breakpoint <b>{0}, {1}</b>""" - """ contains a syntax error.</p>""")\ - .format(filename, lineno)) + """ contains a syntax error.</p>""") + .format(filename, lineno)) model = self.debugServer.getBreakPointModel() index = model.getBreakPointIndex(filename, lineno) @@ -1304,8 +1304,8 @@ self.ui, self.trUtf8("Watch Expression Error"), self.trUtf8("""<p>The watch expression <b>{0}</b>""" - """ contains a syntax error.</p>""")\ - .format(cond)) + """ contains a syntax error.</p>""") + .format(cond)) model = self.debugServer.getWatchPointModel() index = model.getWatchPointIndex(cond) @@ -1332,7 +1332,7 @@ if not special: msg = self.trUtf8("""<p>A watch expression '<b>{0}</b>'""" """ already exists.</p>""")\ - .format(Utilities.html_encode(cond)) + .format(Utilities.html_encode(cond)) else: msg = self.trUtf8( """<p>A watch expression '<b>{0}</b>'""" @@ -1347,7 +1347,7 @@ model.deleteWatchPointByIndex(index) else: model.setWatchPointByIndex(index, cond, special, - (temp, enabled, count)) + (temp, enabled, count)) def __configureVariablesFilters(self): """ @@ -1528,9 +1528,10 @@ if editor is None: return - if not self.viewmanager.checkDirty(editor, - Preferences.getDebugger("Autosave")) or \ - editor.getFileName() is None: + if not self.viewmanager.checkDirty( + editor, + Preferences.getDebugger("Autosave")) or \ + editor.getFileName() is None: return fn = editor.getFileName() @@ -1645,9 +1646,10 @@ if editor is None: return - if not self.viewmanager.checkDirty(editor, - Preferences.getDebugger("Autosave")) or \ - editor.getFileName() is None: + if not self.viewmanager.checkDirty( + editor, + Preferences.getDebugger("Autosave")) or \ + editor.getFileName() is None: return fn = editor.getFileName() @@ -1764,9 +1766,10 @@ if editor is None: return - if not self.viewmanager.checkDirty(editor, - Preferences.getDebugger("Autosave")) or \ - editor.getFileName() is None: + if not self.viewmanager.checkDirty( + editor, + Preferences.getDebugger("Autosave")) or \ + editor.getFileName() is None: return fn = editor.getFileName() @@ -1885,9 +1888,10 @@ if editor is None: return - if not self.viewmanager.checkDirty(editor, - Preferences.getDebugger("Autosave")) or \ - editor.getFileName() is None: + if not self.viewmanager.checkDirty( + editor, + Preferences.getDebugger("Autosave")) or \ + editor.getFileName() is None: return fn = editor.getFileName() @@ -2151,11 +2155,11 @@ curr = -1 arg, ok = QInputDialog.getItem( - self.ui, - self.trUtf8("Evaluate"), - self.trUtf8("Enter the statement to evaluate"), - self.evalHistory, - curr, True) + self.ui, + self.trUtf8("Evaluate"), + self.trUtf8("Enter the statement to evaluate"), + self.evalHistory, + curr, True) if ok: if not arg: @@ -2180,11 +2184,11 @@ curr = -1 stmt, ok = QInputDialog.getItem( - self.ui, - self.trUtf8("Execute"), - self.trUtf8("Enter the statement to execute"), - self.execHistory, - curr, True) + self.ui, + self.trUtf8("Execute"), + self.trUtf8("Enter the statement to execute"), + self.execHistory, + curr, True) if ok: if not stmt: