When I debug my Python code in Pycharm I often want to change some of the variables that are being set by the original code.
I can do this via the Debugger tab, click on the respective variable and use the Set Value function to change it. This feels too much clicking around and I would prefer to do it via the console interface. But when I try this, it doesn't update the variable:
>>> filename
Out[6]: 'a'
>>> filename='b'
>>> filename
Out[8]: 'a'
Is there a way to change these type of variables via the console interface?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…