263 def __dumpThreadList(self): |
263 def __dumpThreadList(self): |
264 """ |
264 """ |
265 Public method to send the list of threads. |
265 Public method to send the list of threads. |
266 """ |
266 """ |
267 threadList = [] |
267 threadList = [] |
268 if self.threads: # indication for the threaded debugger |
268 if self.threads and self.currentThread: # indication for the threaded debugger |
269 currentId = self.currentThread.get_ident() |
269 currentId = self.currentThread.get_ident() |
270 for t in self.threads.values(): |
270 for t in self.threads.values(): |
271 d = {} |
271 d = {} |
272 d["id"] = t.get_ident() |
272 d["id"] = t.get_ident() |
273 d["name"] = t.get_name() |
273 d["name"] = t.get_name() |