-
-
Save funkenstrahlen/9f69b97dc96db174c92f1f187f3d0d62 to your computer and use it in GitHub Desktop.
LLDB commands to print a Data object as a String. It only works if the underlying data is actually a String.
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
// See: http://stackoverflow.com/questions/11531353/viewing-nsdata-contents-in-xcode#25097265 | |
po String(data: data, encoding: .utf8) | |
// Objective-C equivalent. | |
// See: http://stackoverflow.com/questions/11531353/viewing-nsdata-contents-in-xcode#19626815 | |
// p (char *)[buffer bytes] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment