python flask debug mode code example
Example 1: flask debug
$ export FLASK_ENV=development
$ flask run
Example 2: how to set debug mode on in flask
set "FLASK_DEBUG=1" in .flaskenv file of your project.
$ export FLASK_ENV=development
$ flask run
set "FLASK_DEBUG=1" in .flaskenv file of your project.