How to debug a Flask app

前端 未结 13 2348
陌清茗
陌清茗 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:05

    For Windows users:

    Open Powershell and cd into your project directory.

    Use these commandos in Powershell, all the other stuff won't work in Powershell.

    $env:FLASK_APP = "app"  
    $env:FLASK_ENV = "development"
    
    0 讨论(0)
提交回复
热议问题