eric6/Debugger/ExceptionLogger.py

changeset 7544
366c7c6582d8
parent 7360
9190402e4505
child 7564
787684e6f2f3
child 7780
41420f82c0ac
equal deleted inserted replaced
7543:a737e240f27b 7544:366c7c6582d8
101 0, self.tr('An unhandled exception occured.' 101 0, self.tr('An unhandled exception occured.'
102 ' See the shell window for details.')) 102 ' See the shell window for details.'))
103 return 103 return
104 104
105 if exceptionMessage == '': 105 if exceptionMessage == '':
106 itm.setText(0, "{0}".format(exceptionType)) 106 text = "{0}".format(exceptionType)
107 else: 107 else:
108 itm.setText(0, "{0}, {1}".format(exceptionType, exceptionMessage)) 108 text = "{0}, {1}".format(exceptionType, exceptionMessage)
109
110 itm.setText(0, text)
111 itm.setToolTip(0, text)
109 112
110 # now add the call stack, most recent call first 113 # now add the call stack, most recent call first
111 for entry in stackTrace: 114 for entry in stackTrace:
112 excitm = QTreeWidgetItem(itm) 115 excitm = QTreeWidgetItem(itm)
113 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1])) 116 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1]))

eric ide

mercurial