How to debug flask.app with pycharm 2.x that's running on gunicorn

前端 未结 4 828
清酒与你
清酒与你 2021-01-31 09:34

I\'m developing a flask.app that uses web socket functionality and installed flask-socket to provide that. So the flask-socket developer recommends gunicorn as web server. My qu

4条回答
  •  深忆病人
    2021-01-31 10:02

    I was trying to debug on Pycharm 2020.2.1 and the break points weren't correctly working even though the Gevent compatible debugging was enabled. It turned out that I had to disable Cython for my run configuration via setting the environment variable as described here to make it work.

    PYDEVD_USE_CYTHON=NO
    

提交回复
热议问题