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