Can't set the value of a variable in the debugger

Answered

I'm having trouble using the set value option in the variables window of the debugger.  I'm using PyCharm 2017.3.3 (Professional Edition) (Build #PY-173.4301.16, built on January 11, 2018) on Windows 10 Enterprise.  I have a simple dictionary and want to change the value of one of the elements.  There is no nastygram - the value just reverts back to the original value.  This seems related to this post but it was quite a while ago.  Perhaps it broke again??

A colleague clued me in to the fact that I can do assignment inside the evaluate window!  I had been using that to look at expressions but never imagined I could do an assignment!  So I can do what I want another way but I don't understand why set value is not working for me.

6 comments
Comment actions Permalink

Here's a screen shot of the thing I was trying to do (doesn't work): 

The alternative method (which works): 

3
Comment actions Permalink

This problem still happens in Pycharm 2019.1 !

Jean-Pierre

3
Comment actions Permalink

Hi Jpfuntne! It looks like a bug (or a missing feature), I created the corresponding ticket in the bug tracker: https://youtrack.jetbrains.com/issue/PY-28563

0
Comment actions Permalink

This is happening for me in 2019.2, as well

0
Comment actions Permalink

2019.2.3 same issue, just started happening

0
Comment actions Permalink

Hello!

The bug has not been fixed yet, please feel free to vote for it in order to increase its priority https://youtrack.jetbrains.com/issue/PY-28563?_ga=2.114365572.2053364720.1569749179-1726696482.1567521918

 

 

Kind regards,
Tonya
https://www.jetbrains.com
The Drive to Develop

0

Please sign in to leave a comment.