Skip to content

Instantly share code, notes, and snippets.

View KunihikoUeno's full-sized avatar

Kunihiko Ueno KunihikoUeno

  • Japan
View GitHub Profile
@jkereako
jkereako / PrintDataAsString.swift
Last active July 29, 2025 11:35
LLDB commands to print a Data object as a String. It only works if the underlying data is actually a String.
// 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]