Ric*_*Art 1 remote-debugging gevent pycharm
有什么问题?
我在PyCharm(版本2016.1.4)中使用远程解释器(而不是Debug Server!)进行了远程调试,如下所述:jetbrains网站。
当我在“调试”模式下运行时,程序会在断点处按其应有的方式停止。但是,在“变量”窗口中不会显示变量。相反,我得到以下错误:
无法显示框架变量
我想这是同样的问题:链接
我尝试了什么?
我发现此链接提供了可能的解决方案,但对我而言不起作用。基于此解决方案,我对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))
Run Code Online (Sandbox Code Playgroud)
至:
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))
Run Code Online (Sandbox Code Playgroud)
但它仍然不起作用。我仍然看不到变量。
有人知道如何解决吗?
| 归档时间: |
|
| 查看次数: |
2219 次 |
| 最近记录: |