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

Python tracing functions #78

Open
alex-bender opened this issue Feb 18, 2019 · 1 comment
Open

Python tracing functions #78

alex-bender opened this issue Feb 18, 2019 · 1 comment
Labels

Comments

@alex-bender
Copy link
Owner

Write collection of tracing functions for Python:
examples:

  • for finding a function with certain variables
  • for recording call trace from function A to function B
  • ...
@alex-bender
Copy link
Owner Author

import sys

def trace1(frame, event, arg):
    return
def trace2(frame, event, arg):
    return
sys.settrace(trace1)
...
sys.settrace(trace2)
...
sys.settrace(None)  # Restore default behaviour
import pdb; pdb.set_trace()
...

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

No branches or pull requests

1 participant