mirror of https://github.com/python/cpython
In the recursive debug command, pass Pdb arguments (completekey, stdin, stdout)
to the recursive Pdb instance.
This commit is contained in:
parent
e9c996c14d
commit
e41f1552c0
|
@ -641,7 +641,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
||||||
sys.settrace(None)
|
sys.settrace(None)
|
||||||
globals = self.curframe.f_globals
|
globals = self.curframe.f_globals
|
||||||
locals = self.curframe.f_locals
|
locals = self.curframe.f_locals
|
||||||
p = Pdb()
|
p = Pdb(self.completekey, self.stdin, self.stdout)
|
||||||
p.prompt = "(%s) " % self.prompt.strip()
|
p.prompt = "(%s) " % self.prompt.strip()
|
||||||
print >>self.stdout, "ENTERING RECURSIVE DEBUGGER"
|
print >>self.stdout, "ENTERING RECURSIVE DEBUGGER"
|
||||||
sys.call_tracing(p.run, (arg, globals, locals))
|
sys.call_tracing(p.run, (arg, globals, locals))
|
||||||
|
|
Loading…
Reference in New Issue