]> granicus.if.org Git - python/commitdiff
In the recursive debug command, pass Pdb arguments (completekey, stdin, stdout)
authorGuido van Rossum <guido@python.org>
Wed, 13 Feb 2008 18:41:48 +0000 (18:41 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 13 Feb 2008 18:41:48 +0000 (18:41 +0000)
to the recursive Pdb instance.

Lib/pdb.py

index d4eb8bdb390238220a7a77071625f6ee4474c9f1..7d6a09ce89c2bc8561bea102faefdc2a8a59b40f 100755 (executable)
@@ -641,7 +641,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
         sys.settrace(None)
         globals = self.curframe.f_globals
         locals = self.curframe.f_locals
-        p = Pdb()
+        p = Pdb(self.completekey, self.stdin, self.stdout)
         p.prompt = "(%s) " % self.prompt.strip()
         print >>self.stdout, "ENTERING RECURSIVE DEBUGGER"
         sys.call_tracing(p.run, (arg, globals, locals))