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