678 |
678 |
679 self.currentFrame = frlist[0] |
679 self.currentFrame = frlist[0] |
680 |
680 |
681 for fr in frlist: |
681 for fr in frlist: |
682 filename = self._dbgClient.absPath(self.fix_frame_filename(fr)) |
682 filename = self._dbgClient.absPath(self.fix_frame_filename(fr)) |
683 linenr = fr.f_lineno |
|
684 |
683 |
685 if os.path.basename(filename).startswith("DebugClient") or \ |
684 if os.path.basename(filename).startswith("DebugClient") or \ |
686 os.path.basename(filename) == "bdb.py": |
685 os.path.basename(filename) == "bdb.py": |
687 break |
686 break |
688 |
687 |
689 exclist.append([filename, linenr]) |
688 linenr = fr.f_lineno |
|
689 ffunc = fr.f_code.co_name |
|
690 |
|
691 if ffunc == '?': |
|
692 ffunc = '' |
|
693 |
|
694 if ffunc and not ffunc.startswith("<"): |
|
695 argInfo = inspect.getargvalues(fr) |
|
696 fargs = inspect.formatargvalues(argInfo.args, argInfo.varargs, |
|
697 argInfo.keywords, argInfo.locals) |
|
698 else: |
|
699 fargs = "" |
|
700 |
|
701 exclist.append([filename, linenr, ffunc, fargs]) |
690 |
702 |
691 self._dbgClient.write("{0}{1}\n".format(ResponseException, str(exclist))) |
703 self._dbgClient.write("{0}{1}\n".format(ResponseException, str(exclist))) |
692 |
704 |
693 if exctb is None: |
705 if exctb is None: |
694 return |
706 return |