summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tikzit/src/gtk/main.m5
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[]) {