Last active
December 1, 2023 12:48
-
-
Save tongyx361/36ba9e438b3a80bc1b9a3ef366d44a39 to your computer and use it in GitHub Desktop.
Python print for debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# >>> debug | |
def print_debug(name, obj): | |
print(f"[DEBUG] {name}: ({type(obj).__name__})({obj})", end="\n---\n") | |
print_debug("test", []) | |
# <<< debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment