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

How to snoop entire file #36

Open
riverhill527 opened this issue May 9, 2021 · 1 comment
Open

How to snoop entire file #36

riverhill527 opened this issue May 9, 2021 · 1 comment

Comments

@riverhill527
Copy link

riverhill527 commented May 9, 2021

Current to use scoop i have to craete a functions

import snoop

@snoop
def main():
    ALLOWED_HOSTS=[
        "host1",
        "host2"
    ]
    return ALLOWED_HOSTS

hare = main()

instead can i do or entire file

import snoop
@snoop

any python code here

just like in bash we have

set -x

bash script


to see all the commands

@ChillarAnand
Copy link

In addition, if we can have a -m module flag to run it directly without modifying the code, that would be useful too.

python -m snoop run my_script.py

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

2 participants