Is it possible that installing ipdb (or some other package written to do it explicitely) will result in breakpoint()
running ipdb instead of pdb without binding sys.breakpointhook()
to ipdb?
https://www.python.org/dev/peps/pep-0553/
I'm not asking if ipdb does that or if it will, but if its possible to code that. I know that I can set environment variable PYTHONBREAKPOINT=ipdb.set_trace
. The question is if its possible to trigger this behavior by just installing ipdb
.
usercustomize.py
sounds like a perfect place for this. Unfortunately, on my machines when using virtualenvsite.ENABLE_USER_SITE
is alwaysFalse
as if python was started with-S
option orPYTHONNOUSERSITE
environment variable was set. – Numerical