Browse files

Merge pull request #54 from Sapphire64/master

Added notification about PDB issue with terminal input
  • Loading branch information...
2 parents d2f3cc9 + df0533f commit b370cb4e53a3a7aefc92d4e84527650509810971 @mcdonc mcdonc committed Sep 13, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 debugging.rst
@@ -152,3 +152,16 @@ Huh?
- Many great resources can be found describing the details of using
pdb. Try the interactive ``help`` (hit 'h') or a search engine near
+.. note:: There is a well known bug in ``PDB`` in UNIX, when user cannot
+ see what he is typing in terminal window after any interruption during
+ ``PDB`` session (it can be caused by ``CTRL-C`` or when the server restarts
+ automatically). This can be fixed by launching any of this commands in broken
+ terminal: ``reset``, ``stty sane``. Also one can add one of this commands into
+ ``~/.pdbrc`` file, so they will be launched before ``PDB`` session:
+ .. code-block:: python
+ from subprocess import Popen
+ Popen(["stty", "sane"])

0 comments on commit b370cb4

Please sign in to comment.