pallets / quart

An async Python micro framework for building web applications.
https://quart.palletsprojects.com
MIT License
3.01k stars 164 forks source link

Enable debug mode from CLI #354

Open FichteFoll opened 3 months ago

FichteFoll commented 3 months ago

I would like my local development server to start in debug mode, though I have to admit I don't know what the differences between normal and debug mode are since there does not appear to be any documentation about it. However, the line " * Debug mode: False" in print output definitely seems to indicate at debug mode being something that exists and when developing, it probably makes sense to enable it.

Currently, it seems the only option to do so is by a custom Python entry point that runs app.run(debug=True).


Somewhat related is that the --help option mentions that --reload and --no-reload can be used to enable or disable the reloader, but the default isn't mentioned anywhere.

ericlich001 commented 1 month ago

You can set QUART_DEBUG=1 in the environment to enable debug mode. I hope this helps you a bit.