-
Notifications
You must be signed in to change notification settings - Fork 137
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
Get Python 3.13 to work #1692
Get Python 3.13 to work #1692
Conversation
I believe this also fixes attach? Still verifying, but all the attach tests were passing for me locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change
src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py
Outdated
Show resolved
Hide resolved
src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py
Outdated
Show resolved
Hide resolved
# Not currently supported in Python 3.12. | ||
SUPPORT_ATTACH_TO_PID = not IS_PY312_OR_GREATER | ||
# Not currently supported in Python 3.14. | ||
SUPPORT_ATTACH_TO_PID = not IS_PY314_OR_GREATER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know that attach doesn't work in 3.14 for some reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might work, but the code in the attach logic explicitly only allows up to 3.13. This is just matching that logic.
There were a number of internal changes in CPython that were preventing 3.13 from working.
This change fixes all of those spots to use a public API or something that works in all versions.
Addresses #1689