Skip to main content

Use breakpoint() to print out filename, line number, and data.

Project description


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):
    return a


pb | 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.


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

printbreakpoint-0.9.8.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

printbreakpoint-0.9.8-py3-none-any.whl (2.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page