How to debug a Flask app

前端 未结 13 2486
陌清茗
陌清茗 2020-11-22 03:08

How are you meant to debug errors in Flask? Print to the console? Flash messages to the page? Or is there a more powerful option available to figure out what\'s happening

13条回答
  •  余生分开走
    2020-11-22 04:04

    If you're using Visual Studio Code, replace

    app.run(debug=True)
    

    with

    app.run()
    

    It appears when turning on the internal debugger disables the VS Code debugger.

提交回复
热议问题