Skip to content

Commit 0af13b0

Browse files
committed
Document debug mode and autoreload
1 parent 482ccef commit 0af13b0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

website/templates/documentation.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,24 @@ the Google credentials in a cookie for later access:
809809
See the `auth` module documentation for more details.
810810

811811

812+
### Debug mode and automatic reloading
813+
814+
If you pass `debug=True` to the `Application` constructor, the app will be run
815+
in debug mode. In this mode, templates will not be cached and the app will
816+
watch for changes to its source files and reload itself when anything changes.
817+
This reduces the need to manually restart the server during development.
818+
However, certain failures (such as syntax errors at import time) can still
819+
take the server down in a way that debug mode cannot currently recover from.
820+
821+
Debug mode is not compatible with `HTTPServer`'s multi-process mode. You
822+
must not give `HTTPServer.start` an argument greater than 1 if you are using
823+
debug mode.
824+
825+
The automatic reloading feature of debug mode is available as a
826+
standalone module in `tornado.autoreload`, and is optionally used by
827+
the test runner in `tornado.testing.main`.
828+
829+
812830
Performance
813831
-----------
814832
Web application performance is generally bound by architecture, not frontend

0 commit comments

Comments
 (0)