175 if not res: |
175 if not res: |
176 return |
176 return |
177 fname = Utilities.toNativeSeparators(fname) |
177 fname = Utilities.toNativeSeparators(fname) |
178 |
178 |
179 try: |
179 try: |
|
180 title = self.tr("Call Trace Info of '{0}'").format( |
|
181 self.__tracedDebuggerId) |
180 with open(fname, "w", encoding="utf-8") as f: |
182 with open(fname, "w", encoding="utf-8") as f: |
|
183 f.write("{0}\n".format(title)) |
|
184 f.write("{0}\n\n".format(len(title) * "=")) |
181 itm = self.callTrace.topLevelItem(0) |
185 itm = self.callTrace.topLevelItem(0) |
182 while itm is not None: |
186 while itm is not None: |
183 isCall = itm.data(0, Qt.UserRole) |
187 isCall = itm.data(0, Qt.UserRole) |
184 if isCall: |
188 if isCall: |
185 call = "->" |
189 call = "->" |