kolypto
kolypto

Reputation: 35324

Using IPython with breakpoint()

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

Answers (1)

kolypto
kolypto

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

Related Questions