为什么PyCharm会说“无法显示框架变量"?在调试模式下? [英] Why does PyCharm say "Unable to display frame variables" in debug mode?
问题描述
我在一个pycharm工作区中加载了几个python项目.除了一个我可以正常进入的所有东西.但是,在一个项目中,当我在样板的第一行上设置断点时,pycharm说它正在收集数据...
大约10至20秒,然后说无法显示框架变量
.尝试单步执行或进入代码会使pycharm冻结另外20秒.
I have several python projects loaded in one pycharm workspace. All but one I can step into normally. One project, however, when I set a breakpoint on, say, the first line of the boilerplate, pycharm says it's Collecting data...
for about 10 to 20 seconds then says Unable to display frame variables
.
Trying to step over or into the code freezes pycharm for another 20 seconds.
PyCharm仍然在断点处停止,我可以看到堆栈,并且耐心地单击框架.
PyCharm still stops at breakpoints, I can see the stack and, with some patience, click on the frames.
- 我已经检查了项目配置,并且一切看起来都与其他项目相同,或者从一个项目到另一个项目都保持一致,包括项目,环境变量,Python解释器,解释器选项(无),脚本和工作目录./li>
- 我尝试在单独的工作空间中运行项目,但结果相同.
- 我已按照建议的此处重新安装了调试器
- 我已升级到2016.3
我将PyCharm 2016.2.3与 Python 2.7.12 :: Anaconda 4.1.1(x86_64)
结合使用,现在使用的是PyCharm 2016.3
I was using PyCharm 2016.2.3 with Python 2.7.12 :: Anaconda 4.1.1 (x86_64)
, now PyCharm 2016.3
我想念什么?
推荐答案
您应将Pycharm调试器置于 gevent兼容
模式.
You should put the Pycharm Debugger in gevent compatible
mode.
文件>设置>构建,执行,部署> Python调试器> Gevent兼容
File > Settings > Build, Execution, Deployment > Python Debugger > Gevent compatible
您删除的行可能是有目的的,您不应在不知道后果的情况下删除它们.
The lines you removed probably had a purpose and you shouldn't delete them without knowing the consequences.
这篇关于为什么PyCharm会说“无法显示框架变量"?在调试模式下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!