Reputation: 35324
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.
Upvotes: 2
Views: 755
Reputation: 35324
It's done through setting the sys.breakpointhook
, which is called when you set a breakpoint()
:
import sys
import IPython
sys.breakpointhook = IPython.embed
Upvotes: 2