diff --git a/Lib/pdb.py b/Lib/pdb.py index 3a06cd00ad2bf1..58f6bdf78770a5 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1182,6 +1182,7 @@ def do_debug(self, arg): globals = self.curframe.f_globals locals = self.curframe_locals p = Pdb(self.completekey, self.stdin, self.stdout) + p.use_rawinput = self.use_rawinput p.prompt = "(%s) " % self.prompt.strip() self.message("ENTERING RECURSIVE DEBUGGER") try: diff --git a/Misc/NEWS.d/next/Library/2019-03-01-18-33-53.bpo-31078.Z214f3.rst b/Misc/NEWS.d/next/Library/2019-03-01-18-33-53.bpo-31078.Z214f3.rst new file mode 100644 index 00000000000000..8fb15db1463e57 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-03-01-18-33-53.bpo-31078.Z214f3.rst @@ -0,0 +1,2 @@ +Propogate ``use_rawinput`` to recursive pdb (pdb's debug command). Patch by +Segev Finer.