5157:c271375ca534 | 5164:197acc53a662 |
---|---|
572 """ | 572 """ |
573 fr = self.cFrame | 573 fr = self.cFrame |
574 stack = [] | 574 stack = [] |
575 while fr is not None: | 575 while fr is not None: |
576 fname = self._dbgClient.absPath(self.fix_frame_filename(fr)) | 576 fname = self._dbgClient.absPath(self.fix_frame_filename(fr)) |
577 if not fname.startswith("<"): | 577 if not fname.startswith("<") and not fname.endswith("bdb.py"): |
578 fline = fr.f_lineno | 578 fline = fr.f_lineno |
579 ffunc = fr.f_code.co_name | 579 ffunc = fr.f_code.co_name |
580 | 580 |
581 if ffunc == '?': | 581 if ffunc == '?': |
582 ffunc = '' | 582 ffunc = '' |
589 except Exception: | 589 except Exception: |
590 fargs = "" | 590 fargs = "" |
591 else: | 591 else: |
592 fargs = "" | 592 fargs = "" |
593 | 593 |
594 stack.append([fname, fline, ffunc, fargs]) | 594 stack.append([fname, fline, ffunc, fargs]) |
595 | 595 |
596 if fr == self._dbgClient.mainFrame: | 596 if fr == self._dbgClient.mainFrame: |
597 fr = None | 597 fr = None |
598 else: | 598 else: |
599 fr = fr.f_back | 599 fr = fr.f_back |
635 # problems where an exception/breakpoint has occurred | 635 # problems where an exception/breakpoint has occurred |
636 # but we had disabled tracing along the way via a None | 636 # but we had disabled tracing along the way via a None |
637 # return from dispatch_call | 637 # return from dispatch_call |
638 fr.f_trace = self.trace_dispatch | 638 fr.f_trace = self.trace_dispatch |
639 fname = self._dbgClient.absPath(self.fix_frame_filename(fr)) | 639 fname = self._dbgClient.absPath(self.fix_frame_filename(fr)) |
640 if not fname.startswith("<"): | 640 if not fname.startswith("<") and not fname.endswith("bdb.py"): |
641 fline = fr.f_lineno | 641 fline = fr.f_lineno |
642 ffunc = fr.f_code.co_name | 642 ffunc = fr.f_code.co_name |
643 | 643 |
644 if ffunc == '?': | 644 if ffunc == '?': |
645 ffunc = '' | 645 ffunc = '' |
652 except Exception: | 652 except Exception: |
653 fargs = "" | 653 fargs = "" |
654 else: | 654 else: |
655 fargs = "" | 655 fargs = "" |
656 | 656 |
657 stack.append([fname, fline, ffunc, fargs]) | 657 stack.append([fname, fline, ffunc, fargs]) |
658 | 658 |
659 if fr == self._dbgClient.mainFrame: | 659 if fr == self._dbgClient.mainFrame: |
660 fr = None | 660 fr = None |
661 else: | 661 else: |
662 fr = fr.f_back | 662 fr = fr.f_back |