[issue41096] Need command to exit PDB interactive shell
Kerrick Staley
report at bugs.python.org
Wed Jun 24 13:23:50 EDT 2020
Kerrick Staley <kerrick at kerrickstaley.com> added the comment:
Serhiy: I'm referring to the interactive mode that can be entered by typing "interact" in PDB.
Here are reproduction instructions:
1. Run "python3" command.
2. In Python shell, type "import pdb; pdb.set_trace()".
3. In PDB shell, type "interact".
Now, in this "PDB InteractiveConsole" shell (I'm not sure what it's called), the only way to go back to PDB is to press Ctrl+D. If you type "quit()" or "exit()" it exits the entire Python process. If you type "q" it says "NameError: name 'q' is not defined".
In Jupyter, I get different (but still undesirable) behavior: "quit()" raises "NameError: name 'quit' is not defined" (and similar for "exit()").
I think "quit()"/"exit()" in these contexts should return you back to the PDB shell.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41096>
_______________________________________
More information about the Python-bugs-list
mailing list