1
有什么问题?无法显示帧变量(PyCharm远程调试器)
我使用远程解释器(不是调试服务器!)在PyCharm(版本2016.1.4)远程调试中设置:jetbrains website。
当我在调试模式下运行时,程序停止在中断点,因为它应该。但是,在变量窗口中,变量不显示。相反,我得到以下错误:
Unable to display frame variables
我想这是同样的问题:link
我是怎么试试吗?
我发现这个link有一个可能的解决方案,但它不适用于我。在此基础上的解决方案,我修改了helpers/pydev/_pydevd_bundle/pydevd_constants.py
文件,如下所示:
来源:
try:
SUPPORT_GEVENT = os.getenv('GEVENT_SUPPORT', 'False') == 'True'
except:
# Jython 2.1 doesn't accept that construct
SUPPORT_GEVENT = False
# At the moment gevent supports Python >= 2.6 and Python >= 3.3
USE_LIB_COPY = SUPPORT_GEVENT and \
((not IS_PY3K and sys.version_info[1] >= 6) or
(IS_PY3K and sys.version_info[1] >= 3))
要:
try:
SUPPORT_GEVENT = os.getenv('GEVENT_SUPPORT', 'False') == 'True'
try:
import gevent
SUPPORT_GEVENT = True
except:
SUPPORT_GEVENT = False
except:
# Jython 2.1 doesn't accept that construct
SUPPORT_GEVENT = False
# At the moment gevent supports Python >= 2.6 and Python >= 3.3
USE_LIB_COPY = SUPPORT_GEVENT and \
((not IS_PY3K and sys.version_info[1] >= 6) or
(IS_PY3K and sys.version_info[1] >= 3))
,但它仍然无法正常工作。我仍然看不到变数。
任何人有任何想法如何解决它?