当前位置:网站首页>Pycharm进入debug模式后一直显示collecting data解决方法
Pycharm进入debug模式后一直显示collecting data解决方法
2022-06-09 20:46:00 【不瘦8斤的妥球球饼】
1. 问题描述
在用PyCharm进行Python代码调试查看具体变量时,显示collecting data,到最后报错Timeout waiting for response,在界面中看不到变量内部的内容。
(我的Pycharm版本是2020.2)
2. 解决办法
File/Settings/,打开Setting界面,在设置项中勾选下图中的Gevent compatible。

3.Gevent compatible
如果选中此复选框,调试器将与 Gevent-monkeypatched 代码兼容。
关于Gevent-monkeypatched:
Gevent 是一个协作式多任务库。它的工作方式是您,程序员,将您的代码组织成称为 greenlets 的工作单元。当给定的 greenlet 正在运行时,它会单独运行。当它到达一个会阻塞的点时,也就是说,它必须等待一些外部信号,如文件、超时、我们的网络数据,greenlet 应该通过向 gevent 发送信号来进行合作,gevent 会安排其他一些 greenlet 运行。一旦等待的数据准备好,将恢复以前的执行。
现在,Python 的标准库stdlib(曾经?)是不合作模式。标准行为是自私地阻止,而不是向 gevent 发出可以暂停某个 greenlet 的信号。这会导致一个问题,因为只有第一个 greenlet 正在运行,其他人永远没有机会被安排。
Gevent-monkeypatched 的目的是用协作替代方案替换 stdlib 中的阻塞调用,以便现有代码可以利用 greenlet 的并发性而无需重写。
参考链接:
边栏推荐
- maximum likelihood estimation
- C# For循环的一些小细节
- Kubevirt network source code analysis (3) - virtual machine hot migration network
- SSM driving school management system
- [database data recovery] SQL Server database data recovery case
- 步调一致的朋友
- C # learning about abstract classes
- 开源一个 nodejs 防火墙小工具
- [operation and maintenance department] ad domain file permission management
- Logistic regression summary
猜你喜欢

Cvpr2022 oral | cross view transformer for semantic segmentation of real-time map views
![[database data recovery] SQL Server database data recovery case](/img/82/99d3135b6f412a532444e80c2d7faa.jpg)
[database data recovery] SQL Server database data recovery case

dump. Pcapng packet parsing

Sequence traversal of binary tree

二叉树的层序遍历

(上)苹果有开源,但又怎样呢?
Who says redis can't save big keys

Le navigateur ne peut pas ouvrir Baidu, d'autres peuvent être ouverts normalement

es自动停止

Lambda Exception
随机推荐
Share 16 useful typescript and JS tips
Soflu software robot: an automatic tool to assist enterprises in landing Devops
VFP在64位win10环境下访问oracle出现的问题及解决方案
Some problems encountered in deploying cinder CSI plugin
The role of partial in C #
Usage of memberwiseclone in C #
Gbase8s database select clause 5
KubeVirt网络源码分析(3)- 虚拟机热迁移网络
Summary of linear regression
Just learning embedded, I want to ask what is interrupt and what is the concept of interrupt
Huawei's cloud industrial intelligence hub provides new momentum for accelerating the upgrading of industrial intelligence
C # learning about abstract classes
Role of C random
charles抓包-iphone
ModelArts存储方案建议
DataFrame合并
03 Wireshark TCP
Parsing fluent from source code_ Precise local refresh of Redux
numpy中的ndarry排序
堆(优先队列)