From 1be817eaf5652a293ff4103b0bd313025db938ea Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Sun, 21 Apr 2019 21:48:27 +0300 Subject: [PATCH] Documentation --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 99ae57c..6649733 100644 --- a/README.md +++ b/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 #