2

How to do a set up that when I call breakpoint(), IPython shell is invoked instead pdb?

Currently, Python uses pdb, which has no completion.

1 Answer 1

2

It's done through setting the sys.breakpointhook, which is called when you set a breakpoint():

import sys
import IPython
sys.breakpointhook = IPython.embed
Sign up to request clarification or add additional context in comments.

3 Comments

To turn off a banner at every breakpoint sys.breakpointhook = functools.partial( IPython.embed, display_banner=False ) worked, ipython --no-banner didn't.
And how to enter into ipdb?
@Run perhaps you'll prefer pdb++: it's entered automatically whenever you call breakpoint()

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.