Skip to main content

A backport of `breakpoint` to python<3.7

Project description

Build Status Azure DevOps coverage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

future_breakpoint-2.0.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distributions

future_breakpoint-2.0.0-cp39-cp39-manylinux2010_x86_64.whl (18.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

future_breakpoint-2.0.0-cp37-cp37m-win_amd64.whl (8.6 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

future_breakpoint-2.0.0-cp37-cp37m-manylinux1_x86_64.whl (13.8 kB view hashes)

Uploaded CPython 3.7m

future_breakpoint-2.0.0-cp36-cp36m-win_amd64.whl (8.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

future_breakpoint-2.0.0-cp36-cp36m-manylinux1_x86_64.whl (13.7 kB view hashes)

Uploaded CPython 3.6m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page