Debugger/CallStackViewer.py

changeset 2988
f53c03574697
parent 2732
c14fe50c113e
child 3020
542e97d4ecb3
child 3057
10516539f238
equal deleted inserted replaced
2987:c99695c0f13a 2988:f53c03574697
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)))

eric ide

mercurial