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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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