开发者

Setting up WingIDE to debug Flask projects

开发者 https://www.devze.com 2023-03-06 00:55 出处:网络
Has anyone had success setting up Flask project in WingIDE so that you can do breakpoint and use t开发者_JAVA技巧he debug probe on incoming requests?If you turn the Flask debugging off, it should allo

Has anyone had success setting up Flask project in WingIDE so that you can do breakpoint and use t开发者_JAVA技巧he debug probe on incoming requests?


If you turn the Flask debugging off, it should allow for WingIDE's debugging to take over. This works for Eclipse; unfortunately, I have no experience with WingIDE. It's worth a shot at least.

if __name__ == '__main__':
    app.debug = False
    app.run()


https://wingware.com/doc/howtos/flask

if __name__ == "__main__":
    import os
    if 'WINGDB_ACTIVE' in os.environ:
        app.debug = False
    app.run()
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号