eric6/Debugger/DebugUI.py

branch
multi_processing
changeset 7853
35dcac32984a
parent 7802
eefe954f01e8
parent 7849
70e464748aaa
child 7856
82c461fa8a68
equal deleted inserted replaced
7819:d0e9c4cb2aa0 7853:35dcac32984a
1066 else: 1066 else:
1067 E5MessageBox.information( 1067 E5MessageBox.information(
1068 self.ui, Program, self.tr( 1068 self.ui, Program, self.tr(
1069 '<p><b>{0}</b> has terminated with an exit' 1069 '<p><b>{0}</b> has terminated with an exit'
1070 ' status of {1}.</p>{2}').format( 1070 ' status of {1}.</p>{2}').format(
1071 Utilities.normabspath(program), status, info) 1071 .format(os.path.abspath(self.ui.currentProg),
1072 ) 1072 )
1073 else: 1073 else:
1074 if message: 1074 if message:
1075 info = self.tr("Message: {0}").format( 1075 info = self.tr("Message: {0}").format(
1076 Utilities.html_uencode(message)) 1076 Utilities.html_uencode(message))
1097 ) 1097 )
1098 else: 1098 else:
1099 self.appendStdout.emit(self.tr( 1099 self.appendStdout.emit(self.tr(
1100 '"{0}" has terminated with an exit status of' 1100 '"{0}" has terminated with an exit status of'
1101 ' {1}.\n{2}\n').format( 1101 ' {1}.\n{2}\n').format(
1102 Utilities.normabspath(program), status, info) 1102 os.path.abspath(self.ui.currentProg), status,
1103 ) 1103 )
1104 1104
1105 def __lastClientExited(self): 1105 def __lastClientExited(self):
1106 """ 1106 """
1107 Private slot handling the exit of the last client. 1107 Private slot handling the exit of the last client.
1196 source[line].strip(), flagsLine=True) 1196 source[line].strip(), flagsLine=True)
1197 except IndexError: 1197 except IndexError:
1198 pass 1198 pass
1199 if "__IGNORE_EXCEPTION__" in lineFlags: 1199 if "__IGNORE_EXCEPTION__" in lineFlags:
1200 res = E5MessageBox.No 1200 res = E5MessageBox.No
1201 except (UnicodeError, IOError): 1201 except (UnicodeError, OSError):
1202 pass 1202 pass
1203 if res != E5MessageBox.No: 1203 if res != E5MessageBox.No:
1204 self.viewmanager.setFileLine( 1204 self.viewmanager.setFileLine(
1205 stackTrace[0][0], stackTrace[0][1], True) 1205 stackTrace[0][0], stackTrace[0][1], True)
1206 if res != E5MessageBox.No: 1206 if res != E5MessageBox.No:

eric ide

mercurial