From a154c87cfca3e21316552b2ec558029f9c96122a Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 2 Jul 2010 19:45:26 +0200 Subject: [PATCH] Documented exception catching behaviour. This fixes #75 --- flask.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flask.py b/flask.py index 90867fcc..9c720ef0 100644 --- a/flask.py +++ b/flask.py @@ -1090,6 +1090,16 @@ class Flask(_PackageBoundObject): :attr:`debug` flag is set the server will automatically reload for code changes and show a debugger in case an exception happened. + .. admonition:: Keep in Mind + + Flask will supress any server error with a generic error page + unless it is in debug mode. As such to enable just the + interactive debugger without the code reloading, you ahve to + invoke :meth:`run` with ``debug=True`` and ``use_reloader=False``. + Setting ``use_debugger`` to `True` without being in debug mode + won't catch any exceptions because there won't be any to + catch. + :param host: the hostname to listen on. set this to ``'0.0.0.0'`` to have the server available externally as well. :param port: the port of the webserver