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.

Files for future-breakpoint, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size future_breakpoint-2.0.0-cp36-cp36m-manylinux1_x86_64.whl (13.7 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size future_breakpoint-2.0.0-cp36-cp36m-win_amd64.whl (8.6 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size future_breakpoint-2.0.0-cp37-cp37m-manylinux1_x86_64.whl (13.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size future_breakpoint-2.0.0-cp37-cp37m-win_amd64.whl (8.6 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size future_breakpoint-2.0.0-cp38-cp38-manylinux1_x86_64.whl (14.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size future_breakpoint-2.0.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page