Debugger/CallStackViewer.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 2988
f53c03574697
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
102 102
103 def __showCallStack(self, stack): 103 def __showCallStack(self, stack):
104 """ 104 """
105 Public slot to show the call stack of the program being debugged. 105 Public slot to show the call stack of the program being debugged.
106 106
107 @param stack list of tuples with call stack data (file name, line number, 107 @param stack list of tuples with call stack data (file name,
108 function name, formatted argument/values list) 108 line number, function name, formatted argument/values list)
109 """ 109 """
110 self.clear() 110 self.clear()
111 for fname, fline, ffunc, fargs in stack: 111 for fname, fline, ffunc, fargs in stack:
112 if self.__projectMode: 112 if self.__projectMode:
113 dfname = self.__project.getRelativePath(fname) 113 dfname = self.__project.getRelativePath(fname)
186 itm = self.itemBelow(itm) 186 itm = self.itemBelow(itm)
187 f.close() 187 f.close()
188 except IOError as err: 188 except IOError as err:
189 E5MessageBox.critical(self, 189 E5MessageBox.critical(self,
190 self.trUtf8("Error saving Call Stack Info"), 190 self.trUtf8("Error saving Call Stack Info"),
191 self.trUtf8("""<p>The call stack info could not be written""" 191 self.trUtf8("""<p>The call stack info could not be"""
192 """ to <b>{0}</b></p><p>Reason: {1}</p>""")\ 192 """ written to <b>{0}</b></p>"""
193 """<p>Reason: {1}</p>""")\
193 .format(fname, str(err))) 194 .format(fname, str(err)))

eric ide

mercurial