Skip to content

Commit

Permalink
Documented exception catching behaviour. This fixes #75
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jul 2, 2010
1 parent 3ab318a commit a154c87
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flask.py
Expand Up @@ -1090,6 +1090,16 @@ def run(self, host='127.0.0.1', port=5000, **options):
:attr:`debug` flag is set the server will automatically reload :attr:`debug` flag is set the server will automatically reload
for code changes and show a debugger in case an exception happened. 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'`` :param host: the hostname to listen on. set this to ``'0.0.0.0'``
to have the server available externally as well. to have the server available externally as well.
:param port: the port of the webserver :param port: the port of the webserver
Expand Down

0 comments on commit a154c87

Please sign in to comment.