Niko Fohr
Niko Fohr

Reputation: 33740

How to set the breakpoint() to launch IPython shell? (Python 3.7+)

The python 3.7+ breakpoint()-function launches the python debugger by default. How can I make it to lauch the IPython shell* instead?

*By IPython shell I mean the embed() -function from IPython package.

Upvotes: 2

Views: 137

Answers (1)

Barak Itkin
Barak Itkin

Reputation: 4877

Set the PYTHONBREAKPOINT environment variable to point to the relevant function from the IPython package. See PEP 553 -- Built-in breakpoint() for more details.

Upvotes: 3

Related Questions