debugging a uwsgi python application using pycharm

后端 未结 3 759
眼角桃花
眼角桃花 2021-01-01 10:06

Is it possible to debug a uwsgi application using an ide like PyCharm? I can debug flask based apps fine by running them directly from pycharm but cannot even run a uwsgi ap

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 10:36

    Not sure how to interpret your question, as you are mixing apples and oranges. Flask is a framework, uWSGI is an application server. I'll try to answer, though.

    As far as I know, uWSGI is not pure python, so debugging it in PyCharm will not be trivial, if even it is possible.

    However, since you are using uWSGI to run your application, I'm assuming it complies with the WSGI protocol. In that case, for debugging purposes, you can alternatively run it from a simple pure-python application engine like wsgiref.simple_server.WSGIServer.

提交回复
热议问题