一、Flask在Pycharm2018前的版本只需设置(两种方法之一): 1. 直接设置app的debug为true: app.debug=true 2. 把debug=true作为参数,传入到run方法 app.run(debug=true) 二、Flask在Pycharm2018版本还需设置: Configuration: