In Objective-C, you can print the call stack by doing the following:
NSLog(@\"%@\", [NSThread callStackSymbols]);
How do you do this in Swi
I needed to write the callstack to a log file so I tweaked it like so.
var ErrorStack = String() Thread.callStackSymbols.forEach { print($0) ErrorStack = "\(ErrorStack)\n" + $0 }