Show More
@@ -485,6 +485,8 b' class Pdb(OldPdb):' | |||||
485 | pass |
|
485 | pass | |
486 |
|
486 | |||
487 | def do_list(self, arg): |
|
487 | def do_list(self, arg): | |
|
488 | """Print lines of code from the current stack frame | |||
|
489 | """ | |||
488 | self.lastcmd = 'list' |
|
490 | self.lastcmd = 'list' | |
489 | last = None |
|
491 | last = None | |
490 | if arg: |
|
492 | if arg: | |
@@ -528,6 +530,10 b' class Pdb(OldPdb):' | |||||
528 | return inspect.getblock(lines[lineno:]), lineno+1 |
|
530 | return inspect.getblock(lines[lineno:]), lineno+1 | |
529 |
|
531 | |||
530 | def do_longlist(self, arg): |
|
532 | def do_longlist(self, arg): | |
|
533 | """Print lines of code from the current stack frame. | |||
|
534 | ||||
|
535 | Shows more lines than 'list' does. | |||
|
536 | """ | |||
531 | self.lastcmd = 'longlist' |
|
537 | self.lastcmd = 'longlist' | |
532 | try: |
|
538 | try: | |
533 | lines, lineno = self.getsourcelines(self.curframe) |
|
539 | lines, lineno = self.getsourcelines(self.curframe) |
General Comments 0
You need to be logged in to leave comments.
Login now