pycharm debug “RecursionError: maximum recursion depth exceeded while calling a Python object” 问题解决

本文介绍如何解决在PyCharm中运行基于Python Flask和Gevent的小项目时遇到的Debug问题,通过勾选Gevent compatible选项实现兼容。

最近参与了个小项目 python flask gevent 的小项目,项目可以在pycharm里run起来,就是不能debug。

 

异常信息:

Exception ignored in: '_pydevd_frame_eval.pydevd_frame_evaluator_win32_36_64.get_bytecode_while_frame_eval'
RecursionError: maximum recursion depth exceeded while calling a Python object

Process finished with exit code -1073741819 (0xC0000005)

baidu了半天,最接近的是一个改pycharm 的一个设置,说是pycharm,default settings --> Build, Execution, Deployment -> Python Debugger. 找到 "Gevent compatible" ,勾选,就行了。试了半天不行,

最后还是看了google,

https://github.com/gevent/gevent/issues/804

In PyCharm, go to Settings --> Build, Execution, Deployment -> Python Debugger.
In that dialog, you'll see a "Gevent compatible" checkbox. Not sure how it got unticked in the new project.

Tick that option and enjoy!

用我不太流利的中国英语给大家翻译过来,免得给有些小伙伴造成不必要的麻烦。

在pycharm软件里,打开settings 找到并点击 Build, Execution, Deployment,然后找到并点击Python Debugger,在这个对话框中,找到"Gevent compatible"选择框,选上,然后就可以了,欢呼!

原来是在pycharm --》settings里面的不是啥default settings,看来这就是google和百度的区别,差一点就浪费大家好多时间。

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值