Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

asottile-archive/future-breakpoint

Repository files navigation

DEPRECATED

with python3.6 reaching end of life, there is no need for this


Build Status Azure DevOps coverage pre-commit.ci status

future-breakpoint

A backport of breakpoint to python<3.7.

install

pip install future-breakpoint

supported versions

python3+, (noop on python3.7+)

usage

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!

how though?

  • a C extension which implements the PEP
  • a .pth file executed on startup (see setup.py) patches sys / builtins

you may also like

About

A backport of `breakpoint` to python<3.7.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •