In PyCharm I enabled FLASK_DEBUG, and FLASK_DEBUG shows = 1,but debug mode still off

Solution
FLASK_ENV=development
FLASK_DEBUG=True
FLASK_RUN_PORT=5000