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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for debug_print2-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01bf5ec038e0e981e3bbd8389f74daba007015b14f0a72c4cedefd0809153435 |
|
MD5 | a9f90ef8a4cc0aa5f411a7bcd1f1c225 |
|
BLAKE2b-256 | a844f956a2649d855f23321f98aea57cf18b6d77cd31629bd86138966cbc1c1a |