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.
相关推荐
Dontla18 小时前
用pip install -e .开发Python包时,Python项目目录结构(项目结构)(可编辑安装editable install)
python·pip
Thomas.Sir18 小时前
第三章:Python3 之 字符串
开发语言·python·字符串·string
威联通网络存储19 小时前
告别掉帧与素材损毁:威联通 QuTS hero 如何重塑影视后期协同工作流
前端·网络·人工智能·python
Dxy123931021620 小时前
Python 根据列表中某字段排序:从基础到进阶
开发语言·windows·python
splage20 小时前
Java进阶——IO 流
java·开发语言·python
cliffordl20 小时前
设计模式(python)
python·设计模式
always_TT20 小时前
从Python_Java转学C语言需要注意什么?
java·c语言·python
2301_7938046920 小时前
定时任务专家:Python Schedule库使用指南
jvm·数据库·python
穿越世纪的风尘21 小时前
【问题解决】No module named ‘_sqlite3‘
python·centos