In Objective-C, you can print the call stack by doing the following:
NSLog(@\"%@\", [NSThread callStackSymbols]);
How do you do this in Swi
For Swift 3 use:
print(Thread.callStackSymbols)
or for better formatting
for symbol: String in Thread.callStackSymbols { print(symbol) }