Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snoop recursively, but only in my code. #225

Open
guettli opened this issue Mar 14, 2022 · 2 comments
Open

Snoop recursively, but only in my code. #225

guettli opened this issue Mar 14, 2022 · 2 comments

Comments

@guettli
Copy link

guettli commented Mar 14, 2022

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 code of Django.

I would like to see every line of my code, excluding Django, standard library and other libraries.

I had a look at the arguments which snoop() accepts, but I think it is not possible up to now.

Would you accept a PR which implements this?

Do you have a hint how to implement this?

@cool-RR
Copy link
Owner

cool-RR commented Mar 14, 2022

This is a good idea. How would you propose an API for that would look like? I have some thoughts but I want to hear yours first.

@alexmojaki If you'll have any opinion about this, I'll be happy to hear it.

@alexmojaki
Copy link
Collaborator

Link to the equivalent issue: alexmojaki/snoop#51

To do something similar now In PySnooper I think you'd have to override Tracer._is_internal_frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants