【发布时间】:2016-09-27 15:27:46
【问题描述】:
有什么问题?
我在 PyCharm(2016.1.4 版)中使用远程解释器(不是调试服务器!)进行远程调试,如下所述:jetbrains website。
当我在调试模式下运行时,程序应该在断点处停止。但是,在“变量”窗口中不显示变量。相反,我收到以下错误:
无法显示帧变量
我猜这是同样的问题: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))
但它仍然不起作用。我仍然看不到变量。
有人知道怎么解决吗?
【问题讨论】:
标签: pycharm remote-debugging gevent