with python3.6 reaching end of life, there is no need for this
A backport of breakpoint
to python<3.7.
pip install future-breakpoint
python3+, (noop on python3.7+)
Once installed, you should be able to use breakpoint()
in the same way as in
python3.7+.
def rand():
breakpoint() # no need for `import pdb; pdb.set_trace()`
return 4
See PEP 553 for full usage!
- a C extension which implements the PEP
- a
.pth
file executed on startup (see setup.py) patchessys
/builtins