当前位置:网站首页>Pychart always displays the collecting data solution after entering the debug mode
Pychart always displays the collecting data solution after entering the debug mode
2022-06-09 21:07:00 【Not thin, 8-jin ball cake】
1. Problem description
In use PyCharm Conduct Python When code debugging looks at specific variables , Show collecting data, Finally, an error is reported Timeout waiting for response, You can't see the internal contents of variables in the interface .
( my Pycharm The version is 2020.2)
2. terms of settlement
File/Settings/, open Setting Interface , Check... In the following figure in the setting item Gevent compatible.

3.Gevent compatible
If you select this check box , The debugger will Gevent-monkeypatched Code compatibility .
About Gevent-monkeypatched:
Gevent Is a collaborative multitask Library . It works the way you , The programmer , Organize your code into something called greenlets Work unit of . When given greenlet Running time , It will run alone . When it reaches a point where it will block , in other words , It must wait for some external signal , Such as file 、 Overtime 、 Our network data ,greenlet Should be passed to gevent Send signals to cooperate ,gevent Will arrange some other greenlet function . Once the waiting data is ready , The previous execution will be resumed .
Now? ,Python The standard library of stdlib( once ?) Non cooperative mode . The standard behavior is to stop selfishly , Not to gevent Issue to pause a greenlet The signal of . This can lead to a problem , Because only the first greenlet Running , Others will never have a chance to be arranged .
Gevent-monkeypatched The goal of is to replace stdlib Blocking calls in , So that existing code can take advantage of greenlet Without rewriting .
Reference link :
Python Debugger Explanation of several setting options _ Ziyan Ruoshui's blog -CSDN Blog
边栏推荐
- laravel8 使用when搜索
- Summary of linear regression
- [time series] TFT: multi-step direct prediction of interpretable time series transformers
- Goldfish rhca memoirs: do447 management list -- Chapter experiment
- GBase8s数据库select子句1
- Fedformer:frequency enhanced decomposedtransformer for long term series forecasting[still learning...]
- Go 调用 Kubernetes API 的 几个简单的 example
- Go installation tutorial
- 剑指offer1-32题思路
- Richter's replacement principle in C #
猜你喜欢
随机推荐
Inheritance relationship in C #
GBase8s数据库select子句1
Tke builds efk log service
C interface class learning
Share 4 methods of JS deep copy
739. 每日温度 - 力扣(单调递减栈)
Es automatic stop
区间值(单调栈)
Examples of operator overloading in C #
How Bi makes SaaS products have a "sense of security" and "sensitivity" (Part I)
Numpy duplicate data
The server responded that static resources were not loaded
剑指offer1-32题思路
Using ArrayList to lose data in multithreaded scenarios
Gamefi's new departure, aquanee will log in to gate and bitmart on June 9
Chief architect of Huawei cloud stack: create a "hands-on" digital tool and answer the necessary topic of government enterprise IT digital transformation
numpy中的ndarry排序
In the first quarter, the global semiconductor equipment shipment reached US $24.7 billion, a year-on-year increase of 5%
Dongle driven solution
Why rewrite equals and hashcode?








