tab completion for the expression after “p”/“pp” command
In pdb, when I type p foo before hitting Tab, it finds all variables in scope with prefix foo, like foobar. In ipdb it shows wrong completion (magic functions). This feature is useful because I’m used to print variables with p/pp command (to avoid collision between variables and commands).
ipdb is a light wrapper around IPython debugger.
Could you file that issue in their repository ?
Please correct me if I’m wrong, but I thought p is ipdb specific? I don’t think IPython provides that command.
As far as I know, p is available in IPython debugger. It is not provided by ipdb.
What I am trying to say is that the debugger is provided by IPython.
ipdb is only a convenient API to access that debugger.
pis available inIPythondebugger.
How can I verify that? I assume that I’m not supposed to fire the p command right after entering the IPython environment. Do I need to “enter the debug mode” in IPython?
The IPython official documentation didn’t mention how to get in a debugger REPL environment (or I must have missed it).
What is your usual way to get into pdb ? In order to hopefully help you to do the same with ipdb ?
Here is a resource that might help: https://switowski.com/blog/ipython-debugging/