Show More
@@ -510,6 +510,12 b' class Pdb(OldPdb):' | |||||
510 | self.shell.find_line_magic('pinfo')("pinfo %s" % arg, |
|
510 | self.shell.find_line_magic('pinfo')("pinfo %s" % arg, | |
511 | namespaces=namespaces) |
|
511 | namespaces=namespaces) | |
512 |
|
512 | |||
|
513 | def do_psource(self, arg): | |||
|
514 | """Print (or run through pager) the source code for an object.""" | |||
|
515 | namespaces = [('Locals', self.curframe.f_locals), | |||
|
516 | ('Globals', self.curframe.f_globals)] | |||
|
517 | self.shell.find_line_magic('psource')(arg, namespaces=namespaces) | |||
|
518 | ||||
513 | def checkline(self, filename, lineno): |
|
519 | def checkline(self, filename, lineno): | |
514 | """Check whether specified line seems to be executable. |
|
520 | """Check whether specified line seems to be executable. | |
515 |
|
521 |
General Comments 0
You need to be logged in to leave comments.
Login now