如何在Tornado中设置debugging模式?

我GOOGLE了一下,发现我应该在Tornado中设置debugging模式,以便它可以在更新时自动重新加载文件。 但是我没有find一个确切的string来插入。 我尝试了不同的组合,类似于这个application.settings = {"Debug": True}但它没有帮助。

这是龙卷风网站的一个调整的例子:

 if __name__ == "__main__": application = tornado.web.Application([ (r"/", MainHandler) ], debug=True) application.listen(8888) tornado.ioloop.IOLoop.instance().start()