-
Notifications
You must be signed in to change notification settings - Fork 69
Edit dictionary value hangs VS #1385
Comments
FYI |
Arrays are also affected |
This affects everything except for top-level variables (whether local or global) - e.g. object attributes are also affected. The underlying reason is that pydevd can't handle Specifically, it only handles It looks like this is a feature regression from pydevd JSON refactoring. Even so it shouldn't hang the debugger, just report inability to set. The hang is a separate bug, due to this line returning the command response (whence it gets discarded), instead of sending it via |
The way we had solved the list or dict edit before was by doing a evaluate/exec internally. The temporary workaround is to do that, manually. @fabioz this should do evaluate or exec on the variable after retrieving its evaluateName. That is how we used to do this before it got moved to pydevd. this is only needed until the list/dict resolvers are updated to support setting values. |
I'll take a look at it. |
As a note, my plan is to provide a pull request for this tomorrow. |
Environment data
Actual behavior
VS hangs when editing a dict value
Expected behavior
Value in dict is changed and watch window shows the new value
Note that it works when reverting to ptvsd 4.2.0
Steps to reproduce:
The text was updated successfully, but these errors were encountered: