Documentation

This commit is contained in:
Ram Rachum 2019-04-21 21:48:27 +03:00
parent e898561a4f
commit 1be817eaf5
1 changed files with 9 additions and 1 deletions

View File

@ -70,10 +70,18 @@ If stderr is not easily accessible for you, you can redirect the output to a fil
@pysnooper.snoop('/my/log/file.log')
Want to see values of some variables that aren't local variables?
See values of some variables that aren't local variables:
@pysnooper.snoop(variables=('foo.bar', 'self.whatever'))
Show snoop lines for functions that your function calls:
@pysnooper.snoop(depth=2)
Start all snoop lines with a prefix, to grep for them easily:
@pysnooper.snoop(prefix='ZZZ ')
# Installation #