-
Notifications
You must be signed in to change notification settings - Fork 142
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
Set a variable from a different frame #1142
Comments
Also applies when you do "evaluate" with an equivalent assignment. This is kinda related to #1138 - I believe it's the same code that's responsible for the update. But it also seems to not be updating the real globals dict on purpose, so this restriction might be in place to work around some other limitation; @fabioz, does this sound familiar? |
The problem is that |
…globals(). Fixes microsoft#1142 Fixes microsoft#1138
Thanks @fabioz, after a first quick test, it seems to work well. |
Is there a way to copy a local variable (in a function) to the global scope (module), in order to inspect it after debugging ?
In my experience, sending a
setExpression
request with a global variable as expression does not create a global variable:The above request will create a variable within the frame of the function only. This variable will not be accessible from the frame of the module.
I may have misunderstood how frames and scopes work, I'd be happy to have some clarification if this is the case.
The text was updated successfully, but these errors were encountered: