Flask not activating debug mode
- Make sure that you're running the right program, sometimes it happensthat we're making changes in some other program and running somethingelse.
- Also ensure that Setting app.debug = True is altogether adifferent thing from setting FLASK_DEBUG mode to on.
Try this, this works at my end.
from flask import Flaskapp = Flask(__name__)@app.route('/')def hello_world(): return 'Hello World!'if __name__ == "__main__": app.run(debug=True)