-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Switching frame will erase the local variable changes in pdb #102864
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
Comments
@iritkatriel could you take a look at the issue when you have some time as you reviewed the related one so you might already know the fundamental problem. |
When was this issue introduced? Is it part of the 3.10/3.11 changes to frames? |
Unfortunately no. This issue has been there for a long time. As far as I can tell, you can repro it on 3.8. If I had to guess, it's probably when Python started using FAST instead of local variable dict. |
This is fixed by PEP 667. |
This issue is related to #101673 , where
f_locals
being accessed during the debugging clears the changes of local variables. We need to only do one access off_locals
before giving back control.The worst part is,
print_stack_entry
callsformat_stack_entry
which is abdb
function, and it accessesf_locals
. To keep the maximum compatibility ofbdb
, I decided to leave it alone and only fixpdb
.Linked PRs
The text was updated successfully, but these errors were encountered: