PrintBreakpoint
Use breakpoint() to print out filename, line number, and data. For Python 3.7+
Install printbreakpoint with pip.
pip install printbreakpoint
Update the PYTHONBREAKPOINT environment variable (available starting in Python 3.7).
export PYTHONBREAKPOINT=printbreakpoint.pb
Now when you add breakpoint() to your code, it will show the output from printbreakpoint.
def some_function(a):
breakpoint()
return a
Prints
pb | some_file.py:3 in some_function
Any data you pass to the breakpoint() will be added to the output.
Change the environment variable back to the default when you’re ready to continue using pdb.
export PYTHONBREAKPOINT=
Metadata
Release files for printbreakpoint 0.9.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| printbreakpoint-0.9.8.tar.gz | 2.6 kB | Without provenance | Details for printbreakpoint-0.9.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| printbreakpoint-0.9.8-py3-none-any.whl | Python 3 | none | any | Details for printbreakpoint-0.9.8-py3-none-any.whl |
Total release size: 5.4 kB
Release files / printbreakpoint-0.9.8.tar.gz
| Download URL | printbreakpoint-0.9.8.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a37986379b6273055109cb082311292b1c005b27d276b4dd9b2b47e0512ff70
|
|
BLAKE2b-256 checksum How to use checksums |
fc5c73ce339723497a4b0fbafa2a46a5b305c67ddb1e31d3fe71ce52e1120fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
|
Release files / printbreakpoint-0.9.8-py3-none-any.whl
| Download URL | printbreakpoint-0.9.8-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06a6e5a9804a7d7b58418300c7edea2aad7a4c87877766701ab5f9dca1d6699f
|
|
BLAKE2b-256 checksum How to use checksums |
dbc88611de1b28297bdc31366e6a56d144b349a6ec30c55d36423673882e40d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
|
Security for printbreakpoint 0.9.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.