##// END OF EJS Templates
feat(debugger): support . (dot) as an argument of the l(ist) command in ipdb (#14121)...
Matthias Bussonnier -
r28370:03eaa618 merge
parent child Browse files
Show More
@@ -640,7 +640,7 b' class Pdb(OldPdb):'
640 640 """
641 641 self.lastcmd = 'list'
642 642 last = None
643 if arg:
643 if arg and arg != ".":
644 644 try:
645 645 x = eval(arg, {}, {})
646 646 if type(x) == type(()):
@@ -655,7 +655,7 b' class Pdb(OldPdb):'
655 655 except:
656 656 print('*** Error in argument:', repr(arg), file=self.stdout)
657 657 return
658 elif self.lineno is None:
658 elif self.lineno is None or arg == ".":
659 659 first = max(1, self.curframe.f_lineno - 5)
660 660 else:
661 661 first = self.lineno + 1
General Comments 0
You need to be logged in to leave comments. Login now