look here
http://www.tornadoweb.org/en/stable/overview.html#debug-mode-and-automatic-reloading
If you pass debug=True to the Application constructor, the app will be
run in debug mode. In this mode, templates will not be cached and the
app will watch for changes to its source files and reload itself when
anything changes. This reduces the need to manually restart the server
during development. However, certain failures (such as syntax errors
at import time) can still take the server down in a way that debug
mode cannot currently recover from.
Debug mode is not compatible with HTTPServer‘s multi-process mode. You
must not give HTTPServer.start an argument greater than 1 if you are
using debug mode.
The automatic reloading feature of debug mode is available as a
standalone module in tornado.autoreload, and is optionally used by the
test runner in tornado.testing.main.
Reloading loses any Python interpreter command-line arguments (e.g. -
u) because it re-executes Python using sys.executable and sys.argv.
Additionally, modifying these variables will cause reloading to behave
incorrectly.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If you pass debug=True to the Application constructor, the app will be
run in debug mode. In this mode, templates will not be cached and the
app will watch for changes to its source files and reload itself when
anything changes. This reduces the need to manually restart the server
during development. However, certain failures (such as syntax errors
at import time) can still take the server down in a way that debug
mode cannot currently recover from.
Debug mode is not compatible with HTTPServer‘s multi-process mode. You
must not give HTTPServer.start an argument greater than 1 if you are
using debug mode.
The automatic reloading feature of debug mode is available as a
standalone module in tornado.autoreload, and is optionally used by the
test runner in tornado.testing.main.
Reloading loses any Python interpreter command-line arguments (e.g. -
u) because it re-executes Python using sys.executable and sys.argv.
Additionally, modifying these variables will cause reloading to behave
incorrectly.
Update: the process is reloaded, but when stopped and reloaded, it
seems that in IDE it will show that the process is stopped (Aptana
studio, scite), so when you hit 'run' it tells you that python is
already running and holding that port.
Quick question - is it possible to capture stack trace when adding ioloop callback in debug mode and output it in case of exceptions?