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

Can you please make this work for python 2.7? #2

Open
mda6 opened this issue Jan 12, 2017 · 1 comment
Open

Can you please make this work for python 2.7? #2

mda6 opened this issue Jan 12, 2017 · 1 comment

Comments

@mda6
Copy link

mda6 commented Jan 12, 2017

Thank you, your package looks awesome!

@nikitakit
Copy link
Owner

Sorry, I don't have any plans for adding support for python 2.7. I am, however, happy to accept contributions should someone else implement this feature.

The ability to break inside a function and run arbitrary code (including modifying local variables, as well as returning from the function with an arbitrary value) is actually a tricky one. As far as I know no other package supports it (including all python debuggers I know about, as well as IPython), so I'm quite proud that I could get it working for xdbg.

The downside, however, is that the implementation makes creative use of low-level implementation details of CPython 3. It is not directly portable to python 2, or other python implementations (e.g. PyPy).

While I think a python2 port is likely to be technically feasible, I don't have the resources to implement it myself. I'm leaving the issue open to reflect that contributions would be appreciated.

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