Skip to main content

Debug printing made easy.

Project description

Bugprint Package

Example Usage

from bugprint import bp

def add(x, y):
    print(f"Adding {x} + {y} = {x + y}")
    bp()

def subtract(x, y):
    print(f"Subtracting {x} - {y} = {x - y}")
    bp()

# Call bp() at specific lines in your code
bp()
add(1, 2)
bp()
subtract(5, 4)
bp()

Output

BP DEBUG: tests.py, line 12
Adding 1 + 2 = 3
BP DEBUG: tests.py, line 5
BP DEBUG: tests.py, line 14
Subtracting 5 - 4 = 1
BP DEBUG: tests.py, line 9
BP DEBUG: tests.py, line 16

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

bugprint-0.3.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bugprint-0.3.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file bugprint-0.3.2.tar.gz.

File metadata

  • Download URL: bugprint-0.3.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for bugprint-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6d3e030248cb986eda977bcfec6634c465f94d68a58f465a5b2b48ae01e8df57
MD5 9efd8119a456486ed53fb6a9556222d5
BLAKE2b-256 2c5fff52f1013681f0917f8bdad6071694ff9fd1d0ad5b507912cfc22aaafc38

See more details on using hashes here.

File details

Details for the file bugprint-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: bugprint-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for bugprint-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ff4b99329a7b817ff814309c1f8d7deb16f70c66a69f1872d11f81c182ce3f1
MD5 808180f770f31117eeb35f5a86fa2a7f
BLAKE2b-256 5c63ef13b2cf19a30453b6a56a7adc737d2d0eb950d9b4a1c3b611ecaf1500b0

See more details on using hashes here.

Supported by

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