PySnooper icon indicating copy to clipboard operation
PySnooper copied to clipboard

Never use print for debugging again

Results 30 PySnooper issues
Sort by recently updated
recently updated
newest added

Hi, I would like to trace the http request handling of Django in my development environment. But I am sure that the bug is in my code, not in the...

It happened that I was using PySnooper with `depth=10000` to explore a piece of running code. Of course, the output was huge with many levels of indentations. I wanted to...

See https://github.com/alexmojaki/snoop/pull/34 Basically you need to do this: https://github.com/alexmojaki/snoop/blob/437956c661184ab458a3f60fcf97c81c31ea2db1/snoop/tracer.py#L213-L217 In particular you need `calling_frame.f_trace = previous_trace` *in addition* to the existing `sys.settrace(previous_trace)`. This is obviously good for restoring the other...

I do not have permission to do pip install on my enterprise machine, can this be used as a regular package?

I found a bug with `relative_time` when used with a generator. The times shown seem to be reset at some point. I don't know whether this bug could also happen...

There is a minor bug at the nesting case. Following is the example. ``` import time import pysnooper snoop = pysnooper.snoop() def test(): with snoop: a = 10 with snoop:...

![image](https://user-images.githubusercontent.com/1193630/61594122-d73c6300-abb5-11e9-99bb-c75e1e352c56.png) the above is a usually appeared screen-shot in jupyter notebook, if colored in columns, it would be really helpful to distinguish time/line number/code/variables parts.

for some specific need, logic may be really complicated, which is not possible to represent by simple parameters or expressions. a (func=filter_func) may help to deal with complex logic and...