I've also looked at this method, since AppKit's interception of exceptions complicates debugging -back.
Index: Source/NSApplication.m
===================================================================
--- Source/NSApplication.m (revision 36941)
+++ Source/NSApplication.m (working copy)
@@ -131,6 +131,8 @@
[exception raise];
}
+ NSLog(@"Unhandled exception: %@", exception);
+
retVal = GSRunExceptionPanel
([NSString stringWithFormat: _(@"Critical Error in %@"),
[[NSProcessInfo processInfo] processName]],