mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 10:15:11 +00:00
Documentation
This commit is contained in:
parent
e898561a4f
commit
1be817eaf5
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
|
@ -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 #
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue