Skip to main content

Capture the print function and add some output information to it for easy debugging

Project description

debug-print

Capture the print function and add some output information to it for easy debugging.

why?

Is there such a situation?
That you need to temporarily use print debugging in third-party packages or source code, but you may forget where to add print when thinking or jumping back and forth.
Now you only need to install and import debug_print to let print output the file name and line number, which is more convenient for debugging.

Install:

pip install debug-print2

Usage:

Just import the file to run.

import debug_print
debug_print.patch()

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

debug_print2-0.1.2.tar.gz (1.2 kB view details)

Uploaded Source

Built Distribution

debug_print2-0.1.2-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file debug_print2-0.1.2.tar.gz.

File metadata

  • Download URL: debug_print2-0.1.2.tar.gz
  • Upload date:
  • Size: 1.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.16 Darwin/22.5.0

File hashes

Hashes for debug_print2-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2bdc67d7d5e34867841d05048a79b6406c6e866f651b54f90955e3a885371121
MD5 daaa1e97928f5801814dfd124cbee022
BLAKE2b-256 d82de0987f753c2b96b495145dae64dd602ca5457bf6ee573bb9488f38cfcd9a

See more details on using hashes here.

File details

Details for the file debug_print2-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: debug_print2-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.16 Darwin/22.5.0

File hashes

Hashes for debug_print2-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 01bf5ec038e0e981e3bbd8389f74daba007015b14f0a72c4cedefd0809153435
MD5 a9f90ef8a4cc0aa5f411a7bcd1f1c225
BLAKE2b-256 a844f956a2649d855f23321f98aea57cf18b6d77cd31629bd86138966cbc1c1a

See more details on using hashes here.

Supported by

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