Flask在Pycharm开启调试模式

   一、Flask在Pycharm2018前的版本只需设置(两种方法之一):

1. 直接设置app的debug为true:

app.debug=true

2. 把debug=true作为参数,传入到run方法

app.run(debug=true)

   二、Flask在Pycharm2018版本还需设置:

   
  Configuration:
  

 

posted @ 2019-02-26 17:56  wsyjlly  阅读(3632)  评论(0编辑  收藏  举报