Closed alexmojaki closed 5 years ago
This is nice functionality, but I'm very hesitant to increase the scope of PySnooper. It's supposed to be a minimalistic little tool, and adding stuff might hurt that. Sorry. People who want to print their expressions can just print them, and people who want a powerful debugger can use an actual debugger.
I know this library is against print style debugging, but sometimes it has its uses. This helps when the usual pysnooper methods are not ideal. For example:
snoop
. Even usingwith
on a single line can print out a bunch of irrelevant variables. This can be used in places where there is no decorator or block.The main advantage over
print
is that this is combined with the other output nicely, no matter the output method.