Fuyukai / Kyoukai

[OLD] A fully async web framework for Python3.5+ using asyncio
https://mirai.veriny.tf
MIT License
298 stars 14 forks source link

No documentation on `debug` attribute of application object #4

Closed mplanchard closed 7 years ago

mplanchard commented 7 years ago

I started using Kyoukai for a side-project to help me better understand asynchronous programming in Python. I've been working on a fork with small changes to the documentation, but this one required a bit more input.

The debug attribute of an application object seems to do two things:

Is that correct? Is there more to it?

I'll be continuing to play around with this and am happy to include what I learn in my eventual documentation PR if desired. It would also be nice to know what the intended use case and/or application flow is for this, though.

Thanks!

Fuyukai commented 7 years ago

Yes, this is pretty much what the debug attribute does. It's very similar to setting debug=True in a Flask application; it loads the Werkzeug debugger (which I wrote a thin wrapper around to get it to work in a non-WSGI environment) and allows you to use that to debug issues in the webapp.

mplanchard commented 7 years ago

Awesome. Thanks for the framework! It's been fun to learn so far.