I have an application running Python 2.6.X. Starting the Python interpreter in interactive mode (with or without using virtualenv): readline support working (command history). Starting my application with the same Python interpreter (virtualenv-ed or not): no readline support available when using pdb.set_trace(): cursor keys not working. Operating system is Linux.
Asked
Active
Viewed 1,522 times
2 Answers
1
Check this recipe to enable readline support in pdb
http://code.activestate.com/recipes/498182-sane-tab-completion-in-pdb/

Imran
- 87,203
- 23
- 98
- 131
-1
I had a similar issue and for me the solution was to use the set trace command that comes with django instead of the pdb package.

bjorns
- 606
- 1
- 5
- 8