gleb-sevruk / pycrunch-trace

Time Travel Debugging for Python
https://pytrace.com
MIT License
152 stars 12 forks source link

Need python2.7 support #2

Open pikhovkin opened 4 years ago

pikhovkin commented 4 years ago

Need python2.7 support

gleb-sevruk commented 4 years ago

The more I'm thinking about Python 2.7, the more I believe we should update our projects to 3.6+

On the other side I'm also working on Python 2.7 codebase, and inability to use own tools there makes me sad.

Does anyone have idea of how much time it will take to make a backport? Is it possible to use same pip package (codebase) for both Python 2.7 and 3.6+?

gleb-britecore commented 4 years ago

@pikhovkin I backported/added experimental support for 2.7: https://github.com/gleb-sevruk/pycrunch-trace/tree/python2.7_support

In case if you interested in testing you can checkout this branch locally and link package in your 2.7 venv using cd ~/code/pycrunch_tracing pip install -e .

I'm having issues recording SQLAlchemy variables, but disabling variable tracing helps me: in file: ~/code/pycrunch_tracing/pycrunch_trace/pycrunch-profiles/default.profile.yaml set trace_variables: false

I'm not sure where to go with this backport (it seems to add more overhead that python 3+ version)

But this is at least something to start with.