边调试,边写代码的实现方式 pycharm
尝试了n多种方式无果
visual studio中的编辑并继续可以实现此功能,但是python没有相关功能支持
采用pycharm的交互模式,进行更改正在调试中的数据
![enter description here enter description here](https://raw.githubusercontent.com/miaozhijuan/xiaoshujiang/master/%E5%B0%8F%E4%B9%A6%E5%8C%A0/1586710818823.png)
enter description here
https://stackoom.com/question?bigid=1ZuBr&tab=oldest
这里的stackoom很有意思,就像是stackoverflow的翻译版本。
最终使用效果
![enter description here enter description here](https://raw.githubusercontent.com/miaozhijuan/xiaoshujiang/master/%E5%B0%8F%E4%B9%A6%E5%8C%A0/1586710882519.png)
enter description here
![enter description here enter description here](https://raw.githubusercontent.com/miaozhijuan/xiaoshujiang/master/%E5%B0%8F%E4%B9%A6%E5%8C%A0/1586710900457.png)
运行中发现有错误可以临时修改到正在运行 的调试中,让错误过去,把相应的代码先贴上(虽然不会跑,但是是正确的),一遍调试,配置dropfram的话可以把各种情况下问题都调试清楚。很搞笑