(rookie) debug mode in flask cannot be entered.

console

Why isn"t there a debugger is activate prompt like on the Internet?

Mar.07,2021

to enable debug mode, you need to set the environment variable FLASK_DEBUG , as follows:
linux export FLASK_DEBUG=1 & & python-m flask run
windows set FLASK_DEBUG=1 & python-m flask run

refer to http://flask.pocoo.org/docs/0.


"in Pycharm 2018, to enable DEBUG mode, you need to select Edit Configurations, under the project name on the left side of the run button in the upper right corner of pycharm. After opening the editing interface, check FLASK_DEBU.
"
motherfucker.. Finally.

Menu