pyCharm 使用不能debug

背景:

第一次使用pyCharm启动python服务,debug启动服务以后:

  1. 发现variables无法查看变量值,而且运行过程中,鼠标放到变量上,也只显示collecting Data...

  2. 而且,使用F8和F7的时候,服务运行还会卡死。

解决办法:

settings -> build,Execution,Deployment -> Python Debugger -> 勾选 Gevent Compatible

然后重启,就可以正常Debug了。

原因在网上有这样一句回答:the option makes debugger compatible with Gevent-monkeypatched code. You may not use gevent, but the libraries you use may.
相关推荐
monkey_lqd1 分钟前
vscode 乱码解决
ide·vscode·编辑器·vscode乱码
邓永豪2 分钟前
《昇思25天学习打卡营第2天|快速入门》
python·深度学习·学习·ai·mindspore
咸鱼永不翻身40 分钟前
Python自动化(6)——图像模块
python·自动化
IT数据小能手1 小时前
Scrapy框架与其他Python爬虫库的对比分析
爬虫·python·scrapy
斐夷所非1 小时前
Python 中的抽象语法树
python
Mr.D学长1 小时前
竞赛选题 python+大数据校园卡数据分析
java·python
Avaricious_Bear1 小时前
Python-天天基金网爬虫分析
开发语言·爬虫·python
幸运草时代狂想曲1 小时前
67.二进制求和
数据结构·python·算法·leetcode·力扣
m0_664047021 小时前
关于 Eclipse 的一场 “三角关系”
java·ide·eclipse
追风赶月。2 小时前
【PyTorch函数解析】einsum的用法示例
人工智能·pytorch·python