I set debug mode on in Flask but it is being showed as “off” in PyCharm console

Solution 1
>>> FLASK_DEBUG=1
>>> FLASK_ENV=development
Solution 2
FLASK_DEBUG = 1

FLASK_ENV = "development"  # it will be deprecated since Flask 2.3