最近参与了个小项目 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和百度的区别,差一点就浪费大家好多时间。