1

I'm using python 3.12.1, IPython 8.28.0, ipdb 0.13.13 and jedi 0.19.1 on ubuntu, started like this:

ipython --no-banner --pdb my_source_code.py

I have PYTHONBREAKPOINT set to ipdb.set_trace and when I encounter a breakpoint() I end up in an interactive debugger.

In general it works great, but at some point I noticed what I think is a regression. If I type, for example, pp myfun and then press TAB I'd expect auto-complete to suggest relevant symbols like myfunction (assuming it exists). I'm pretty sure it used to to this, but with the above versions (which should be the latest) it isn't working.

If I type !myfun and press TAB it works as expected. So I think the issue has to do with auto-completing command arguments.

3
  • Did that ever work though? ipdb uses prompt_toolkit, and avoids to import readline. Whereas pdb uses readline (and the completion works). Commented Feb 3 at 3:09
  • I guess I can’t be 100% sure but why would completion work when I type !abc<TAB> and not when I type pp abc<TAB>? Commented Feb 3 at 11:56
  • I don't know. Personally, I just use PYTHONBREAKPOINT=IPython.embed and don't bother with ipdb. Commented Feb 3 at 16:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.