100 |
100 |
101 def __showCallStack(self, stack): |
101 def __showCallStack(self, stack): |
102 """ |
102 """ |
103 Public slot to show the call stack of the program being debugged. |
103 Public slot to show the call stack of the program being debugged. |
104 |
104 |
105 @param stack list of tuples with call stack data (file name, line number, |
105 @param stack list of tuples with call stack data (file name, |
106 function name, formatted argument/values list) |
106 line number, function name, formatted argument/values list) |
107 """ |
107 """ |
108 self.clear() |
108 self.clear() |
109 for fname, fline, ffunc, fargs in stack: |
109 for fname, fline, ffunc, fargs in stack: |
110 if self.__projectMode: |
110 if self.__projectMode: |
111 dfname = self.__project.getRelativePath(fname) |
111 dfname = self.__project.getRelativePath(fname) |
184 itm = self.itemBelow(itm) |
184 itm = self.itemBelow(itm) |
185 f.close() |
185 f.close() |
186 except IOError as err: |
186 except IOError as err: |
187 E5MessageBox.critical(self, |
187 E5MessageBox.critical(self, |
188 self.trUtf8("Error saving Call Stack Info"), |
188 self.trUtf8("Error saving Call Stack Info"), |
189 self.trUtf8("""<p>The call stack info could not be written""" |
189 self.trUtf8("""<p>The call stack info could not be""" |
190 """ to <b>{0}</b></p><p>Reason: {1}</p>""")\ |
190 """ written to <b>{0}</b></p>""" |
|
191 """<p>Reason: {1}</p>""")\ |
191 .format(fname, str(err))) |
192 .format(fname, str(err))) |