(小白)flask中debug模式进不去

源码

console

为什么不会像网上那样有debugger is activate 的提示???

回答:

开启调试模式需设置环境变量 FLASK_DEBUG,如下
linux export FLASK_DEBUG=1 && python -m flask run
windows set FLASK_DEBUG=1 & python -m flask run

参考 http://flask.pocoo.org/docs/0...

回答:

“在Pycharm 2018中,开启DEBUG模式需要在pycharm右上角运行按钮左边的项目名称下,选择Edit Configurations,打开编辑界面后,把FLASK_DEBU勾选上。

妈蛋..终于知道了。。

以上是 (小白)flask中debug模式进不去 的全部内容, 来源链接: utcz.com/a/157970.html

回到顶部