DebugClients/Python/DebugBase.py

changeset 2622
08cc2f31c983
parent 2620
a3be952f2ae4
child 2648
43a3bec63c09
equal deleted inserted replaced
2621:ab5918079c38 2622:08cc2f31c983
670 670
671 self.currentFrame = frlist[0] 671 self.currentFrame = frlist[0]
672 672
673 for fr in frlist: 673 for fr in frlist:
674 filename = self._dbgClient.absPath(self.fix_frame_filename(fr)) 674 filename = self._dbgClient.absPath(self.fix_frame_filename(fr))
675 linenr = fr.f_lineno
676 675
677 if os.path.basename(filename).startswith("DebugClient") or \ 676 if os.path.basename(filename).startswith("DebugClient") or \
678 os.path.basename(filename) == "bdb.py": 677 os.path.basename(filename) == "bdb.py":
679 break 678 break
680 679
681 exclist.append([filename, linenr]) 680 linenr = fr.f_lineno
681 ffunc = fr.f_code.co_name
682
683 if ffunc == '?':
684 ffunc = ''
685
686 if ffunc and not ffunc.startswith("<"):
687 argInfo = inspect.getargvalues(fr)
688 fargs = inspect.formatargvalues(argInfo[0], argInfo[1],
689 argInfo[2], argInfo[3])
690 else:
691 fargs = ""
692
693 exclist.append([filename, linenr, ffunc, fargs])
682 694
683 self._dbgClient.write("%s%s\n" % (ResponseException, unicode(exclist))) 695 self._dbgClient.write("%s%s\n" % (ResponseException, unicode(exclist)))
684 696
685 if exctb is None: 697 if exctb is None:
686 return 698 return

eric ide

mercurial