diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-03-24 17:52:51 +0000 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-03-24 17:52:51 +0000 |
commit | abf06ae3a0bd6475856688ade788559c8e0901ff (patch) | |
tree | f80eeae2ab9ced08b26db139d25d17a336704061 /tikzit/src | |
parent | d398fae121af7e46c9a3fa996ff596867a61cfdc (diff) |
GTK: print backtrace on unhandled exceptions
Diffstat (limited to 'tikzit/src')
-rw-r--r-- | tikzit/src/gtk/main.m | 5 |
1 files changed, 4 insertions, 1 deletions
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[]) { |