ipdb icon indicating copy to clipboard operation
ipdb copied to clipboard

Readline woes

Open kierun opened this issue 8 years ago • 6 comments

When I start ipdb in the shell, I get command line completion and the arrow keys work just fine.

However, when I run a script with import ipdb; ipdb.set_trace(), I get neither. All the arrow keys output is ^[[A^[[B^[[D^[[C.

Any idea why this happens?

kierun avatar Apr 26 '16 07:04 kierun

same here, including the fact that autocompletion using the <tab> key is not working anymore.

  • ipdb version: 0.10.0
  • ipython version: 4.2.0

brunobord avatar May 09 '16 13:05 brunobord

FYI, I've downgraded to ipdb==0.9.4 and everything went fine again.

brunobord avatar May 09 '16 13:05 brunobord

I just tried downgrading ipdb whilst using iPython 5.1.0 and the issue persists.

wodow avatar Oct 07 '16 14:10 wodow

same problem here... iPython 5.1.0 (where arrow and tab keys work fine) but ipdb is broken

have tried ipdb==0.7, ipdb==0.9.4 and latest ipdb==0.10.1

this is usually some problem with readline, I have also asked for help here https://github.com/ludwigschwardt/python-gnureadline/issues/49 with more details

In my case it stopped working not immediately after upgrade to macOS Sierra but after upgrading some packages. Have tried to revert things but cannot get back into working state yet

anentropic avatar Nov 02 '16 10:11 anentropic

Well I managed to get the readline parts (up/down arrow) working by rebuilding my virtualenv and using pip install --no-cache-dir to force packages to actually recompile against my rebuilt python and readline. something like that

Tab completion is still broken in ipdb

anentropic avatar Nov 02 '16 13:11 anentropic

Which package needs to be compiled and linked to which library?

offero avatar May 15 '17 21:05 offero