summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-07 09:52:54 -0400
committerColin Walters <walters@verbum.org>2010-09-07 10:22:23 -0400
commit4905b753cbad546875616eae13918eca539680c9 (patch)
treef251134c64683fadf1774d230e17056130b34c1f /tools
parent2eb614e805311841e17fd4dbe76aa70443f3a911 (diff)
downloadgobject-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-xtools/g-ir-scanner.in3
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