Use breakpoint() to print out filename, line number, and data.
Project description
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=
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file printbreakpoint-0.9.8.tar.gz.
File metadata
- Download URL: printbreakpoint-0.9.8.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a37986379b6273055109cb082311292b1c005b27d276b4dd9b2b47e0512ff70
|
|
| MD5 |
43a6adb9a49d0e06e48a25e4f083f067
|
|
| BLAKE2b-256 |
fc5c73ce339723497a4b0fbafa2a46a5b305c67ddb1e31d3fe71ce52e1120fd0
|
File details
Details for the file printbreakpoint-0.9.8-py3-none-any.whl.
File metadata
- Download URL: printbreakpoint-0.9.8-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a6e5a9804a7d7b58418300c7edea2aad7a4c87877766701ab5f9dca1d6699f
|
|
| MD5 |
b86de0e03819f3646ac529b95a391e9b
|
|
| BLAKE2b-256 |
dbc88611de1b28297bdc31366e6a56d144b349a6ec30c55d36423673882e40d8
|