Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab completion for the expression after “p”/“pp” command #245

Open
FranklinYu opened this issue Feb 13, 2022 · 6 comments
Open

tab completion for the expression after “p”/“pp” command #245

FranklinYu opened this issue Feb 13, 2022 · 6 comments

Comments

@FranklinYu
Copy link

FranklinYu commented Feb 13, 2022

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).

@FranklinYu FranklinYu changed the title tab completion for the expression after “p” command tab completion for the expression after “p”/“pp” command Feb 13, 2022
@gotcha
Copy link
Owner

gotcha commented Feb 16, 2022

ipdb is a light wrapper around IPython debugger.

Could you file that issue in their repository ?

@FranklinYu
Copy link
Author

Please correct me if I’m wrong, but I thought p is ipdb specific? I don’t think IPython provides that command.

@gotcha
Copy link
Owner

gotcha commented Feb 17, 2022

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.

@FranklinYu
Copy link
Author

p is available in IPython debugger.

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).

@gotcha
Copy link
Owner

gotcha commented May 16, 2022

What is your usual way to get into pdb ? In order to hopefully help you to do the same with ipdb ?

@gotcha gotcha closed this as completed May 16, 2022
@gotcha gotcha reopened this May 16, 2022
@gotcha
Copy link
Owner

gotcha commented Dec 13, 2022

Here is a resource that might help: https://switowski.com/blog/ipython-debugging/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants