diff options
author | Colin Walters <walters@verbum.org> | 2010-09-07 09:52:54 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-09-07 10:22:23 -0400 |
commit | 4905b753cbad546875616eae13918eca539680c9 (patch) | |
tree | f251134c64683fadf1774d230e17056130b34c1f /tools | |
parent | 2eb614e805311841e17fd4dbe76aa70443f3a911 (diff) | |
download | gobject-introspection-4905b753cbad546875616eae13918eca539680c9.tar.gz |
scanner: Add various static debug hooks in GI_SCANNER_DEBUG
For backwards compat, keep the presence of the environment
variable at all to mean "exception".
Also start a HACKING file.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/g-ir-scanner.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/g-ir-scanner.in b/tools/g-ir-scanner.in index 5b8035b7..943d9baa 100755 --- a/tools/g-ir-scanner.in +++ b/tools/g-ir-scanner.in @@ -23,7 +23,8 @@ import os import sys if 'GI_SCANNER_DEBUG' in os.environ: - def on_exception(type, value, tb): + def on_exception(exctype, value, tb): + print "Caught exception: %r %r" % (exctype, value) import pdb pdb.pm() sys.excepthook = on_exception |