python - ipdb requires Ctrl+D for processing command -
python - ipdb requires Ctrl+D for processing command -
i debugging python scripts ipdb. somehow have problem, after entering command, instance n, s, c, b
etc. have press ctrl+d 2 times in order ipdb process command , proceed.
any thought causes , how can turn off?
this effect not isolated ipdb:
technically ctrl-d terminates transmission, , raises eof if results in empty input buffer. happens when press ctrl-d before inputting characters.
do experiment:
1. @ linux terminal type cat 2. press come in once. 3. come in letters: foo 4. press <ctrl-d> once, don't terminal. 5. press <ctrl-d> again, brought terminal.
so looks this:
user@defiant ~ $ cat foofoouser@defiant ~ $
foo printed twice because first time pressed flushed input. sec time it's interpreted end program.
how stop behavior:
don't connected tty when pressing ctrl-d. means don't utilize normal linux terminal. not sure if possible.
how process command in ipdb
pressing come in should process command illustrated video here: http://www.gregaker.net/2012/apr/05/debugging-python-with-pdb-or-ipdb/
python debugging pdb
Comments
Post a Comment