Exploring RAM contents
To find the C string ”FooBar” in your heap:

$ lldb PathToYourAppBundle/Contents/MacOS/YourAppName
(lldb) command script import lldb.macosx.heap
(lldb) r
Pause execution with ControlC.
(lldb) cstr_refs -m FooBar