Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run app in debug mode with Flask

Tags:

flask

pycharm

I've setup a logger with Flask but it doesn't print to the Pycharm console, thought it might be because of not being in debug mode. app.debug = True but FLASK_DEBUG = 0 when I run the application.

app = Flask(__name__)
app.debug = True
like image 467
el_pup_le Avatar asked Sep 03 '25 03:09

el_pup_le


1 Answers

you can get it done by visiting the flask edit configuration tab..I have attached the screenshots..please follow it..

visit the flask configuration tab by finding this option in your top right corner

visit the flask configuration tab by finding this option in your top right corner

Here you can enable disable debug option for your flask app

Here you can enable disable debug option for your flask app

like image 191
Karthikeyan K Avatar answered Sep 06 '25 03:09

Karthikeyan K