From 49bf21c80939e8a5d83cd2d73323ab821de391dc Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Sun, 17 Feb 2013 14:36:04 +0000 Subject: Set the traceback recursion when running in debug mode higher so that we can follow exceptions better. --- start_mx.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/start_mx.py b/start_mx.py index 7b8fc8a..fe0b23b 100755 --- a/start_mx.py +++ b/start_mx.py @@ -55,7 +55,7 @@ except ImportError, ie: sys.exit(1) try: - from twisted.python import usage, runtime + from twisted.python import usage, runtime, failure from twisted.python.util import spewer except ImportError, ie: print("This software requires Twisted>=12.0.2, please see the README for") @@ -139,9 +139,10 @@ if __name__ == "__main__": % (application_name, runtime.shortPythonVersion(), runtime.platform.getType(), thread_support)) - if options['verbose']: config.basic.debug = True + failure.traceupLength = 7 + failure.startDebugMode() if options['test']: from leap.mx import tests ## xxx this needs an __init__.py -- cgit v1.2.3