In Objective-C, you can print the call stack by doing the following:
NSLog(@\"%@\", [NSThread callStackSymbols]);
How do you do this in Swi
This improves the output a little.
for symbol: String in NSThread.callStackSymbols() { NSLog("%@", symbol) }