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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -