Skip to content

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

Notifications You must be signed in to change notification settings

vvanglro/debug-print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debug-print

Package version

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 it at the run entry.

import debug_print
debug_print.patch()

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages