108 ' See the shell window for details.') |
108 ' See the shell window for details.') |
109 .format(debuggerId)) |
109 .format(debuggerId)) |
110 return |
110 return |
111 |
111 |
112 if not exceptionMessage: |
112 if not exceptionMessage: |
113 itm.setText(0, self.tr("{0}: {1}").format( |
113 text = self.tr("{0}: {1}").format( |
114 debuggerId, exceptionType)) |
114 debuggerId, exceptionType) |
115 else: |
115 else: |
116 itm.setText(0, self.tr("{0}: {1}, {2}").format( |
116 text = self.tr("{0}: {1}, {2}").format( |
117 debuggerId, exceptionType, exceptionMessage)) |
117 debuggerId, exceptionType, exceptionMessage) |
|
118 |
|
119 itm.setText(0, text) |
|
120 itm.setToolTip(0, text) |
118 |
121 |
119 # now add the call stack, most recent call first |
122 # now add the call stack, most recent call first |
120 for entry in stackTrace: |
123 for entry in stackTrace: |
121 excitm = QTreeWidgetItem(itm) |
124 excitm = QTreeWidgetItem(itm) |
122 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1])) |
125 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1])) |