Created
November 8, 2016 09:09
-
-
Save 4np/eb796c5061f9e121e0c55d0e349cf159 to your computer and use it in GitHub Desktop.
Show stacktrace in Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Swift 2.3 | |
for symbol: String in NSThread.callStackSymbols() { | |
print(symbol) | |
} | |
// Swift 3 | |
for symbol: String in Thread.callStackSymbols { | |
print(symbol) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment