Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Copy Markdown
Contributor

@blueyed blueyed Mar 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could have a comment that this is required because "stdout" is passed.

As for a test, you could inspect frames (similar to pdbpp/pdbpp#169), but not sure if that is really useful / worth it.

(I just came across this again, after having backported it to pdbpp not correctly before - and wrote a test then.. ;) ref)

p.prompt = "(%s) " % self.prompt.strip()
self.message("ENTERING RECURSIVE DEBUGGER")
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Propogate ``use_rawinput`` to recursive pdb (pdb's debug command). Patch by
Segev Finer.