Show More
@@ -605,48 +605,60 b' class Pdb(OldPdb):' | |||
|
605 | 605 | """Print the call signature for any callable object. |
|
606 | 606 | |
|
607 | 607 | The debugger interface to %pdef""" |
|
608 | namespaces = [('Locals', self.curframe_locals), | |
|
609 |
|
|
|
610 | self.shell.find_line_magic('pdef')(arg, namespaces=namespaces) | |
|
608 | namespaces = [ | |
|
609 | ("Locals", self.curframe_locals), | |
|
610 | ("Globals", self.curframe.f_globals), | |
|
611 | ] | |
|
612 | self.shell.find_line_magic("pdef")(arg, namespaces=namespaces) | |
|
611 | 613 | |
|
612 | 614 | def do_pdoc(self, arg): |
|
613 | 615 | """Print the docstring for an object. |
|
614 | 616 | |
|
615 | 617 | The debugger interface to %pdoc.""" |
|
616 | namespaces = [('Locals', self.curframe_locals), | |
|
617 |
|
|
|
618 | self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces) | |
|
618 | namespaces = [ | |
|
619 | ("Locals", self.curframe_locals), | |
|
620 | ("Globals", self.curframe.f_globals), | |
|
621 | ] | |
|
622 | self.shell.find_line_magic("pdoc")(arg, namespaces=namespaces) | |
|
619 | 623 | |
|
620 | 624 | def do_pfile(self, arg): |
|
621 | 625 | """Print (or run through pager) the file where an object is defined. |
|
622 | 626 | |
|
623 | 627 | The debugger interface to %pfile. |
|
624 | 628 | """ |
|
625 | namespaces = [('Locals', self.curframe_locals), | |
|
626 |
|
|
|
627 | self.shell.find_line_magic('pfile')(arg, namespaces=namespaces) | |
|
629 | namespaces = [ | |
|
630 | ("Locals", self.curframe_locals), | |
|
631 | ("Globals", self.curframe.f_globals), | |
|
632 | ] | |
|
633 | self.shell.find_line_magic("pfile")(arg, namespaces=namespaces) | |
|
628 | 634 | |
|
629 | 635 | def do_pinfo(self, arg): |
|
630 | 636 | """Provide detailed information about an object. |
|
631 | 637 | |
|
632 | 638 | The debugger interface to %pinfo, i.e., obj?.""" |
|
633 | namespaces = [('Locals', self.curframe_locals), | |
|
634 |
|
|
|
635 | self.shell.find_line_magic('pinfo')(arg, namespaces=namespaces) | |
|
639 | namespaces = [ | |
|
640 | ("Locals", self.curframe_locals), | |
|
641 | ("Globals", self.curframe.f_globals), | |
|
642 | ] | |
|
643 | self.shell.find_line_magic("pinfo")(arg, namespaces=namespaces) | |
|
636 | 644 | |
|
637 | 645 | def do_pinfo2(self, arg): |
|
638 | 646 | """Provide extra detailed information about an object. |
|
639 | 647 | |
|
640 | 648 | The debugger interface to %pinfo2, i.e., obj??.""" |
|
641 | namespaces = [('Locals', self.curframe_locals), | |
|
642 |
|
|
|
643 | self.shell.find_line_magic('pinfo2')(arg, namespaces=namespaces) | |
|
649 | namespaces = [ | |
|
650 | ("Locals", self.curframe_locals), | |
|
651 | ("Globals", self.curframe.f_globals), | |
|
652 | ] | |
|
653 | self.shell.find_line_magic("pinfo2")(arg, namespaces=namespaces) | |
|
644 | 654 | |
|
645 | 655 | def do_psource(self, arg): |
|
646 | 656 | """Print (or run through pager) the source code for an object.""" |
|
647 | namespaces = [('Locals', self.curframe_locals), | |
|
648 |
|
|
|
649 | self.shell.find_line_magic('psource')(arg, namespaces=namespaces) | |
|
657 | namespaces = [ | |
|
658 | ("Locals", self.curframe_locals), | |
|
659 | ("Globals", self.curframe.f_globals), | |
|
660 | ] | |
|
661 | self.shell.find_line_magic("psource")(arg, namespaces=namespaces) | |
|
650 | 662 | |
|
651 | 663 | def do_where(self, arg): |
|
652 | 664 | """w(here) |
General Comments 0
You need to be logged in to leave comments.
Login now