Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No readline support while using pdb.set_trace()

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.

like image 677
Andreas Jung Avatar asked May 09 '12 05:05

Andreas Jung


1 Answers

Check this recipe to enable readline support in pdb

http://code.activestate.com/recipes/498182-sane-tab-completion-in-pdb/

like image 79
Imran Avatar answered Oct 20 '22 16:10

Imran