how to run debug mode for flask in an environment code example Example: how to set debug mode on in flask Click to copyset "FLASK_DEBUG=1" in .flaskenv file of your project.