From abf06ae3a0bd6475856688ade788559c8e0901ff Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sun, 24 Mar 2013 17:52:51 +0000 Subject: GTK: print backtrace on unhandled exceptions --- tikzit/src/gtk/main.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tikzit/src/gtk/main.m b/tikzit/src/gtk/main.m index b6e297e..f9b72c8 100644 --- a/tikzit/src/gtk/main.m +++ b/tikzit/src/gtk/main.m @@ -37,7 +37,10 @@ static GOptionEntry entries[] = void onUncaughtException(NSException* exception) { - NSLog(@"uncaught exception: %@", [exception description]); + NSString *joinStr = @"\n "; + NSLog(@"uncaught exception: %@\n backtrace: %@", + [exception description], + [[exception callStackSymbols] componentsJoinedByString:joinStr]); } int main (int argc, char *argv[]) { -- cgit v1.2.3