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