Skip to content

Instantly share code, notes, and snippets.

@bjhomer
Created October 31, 2014 17:06
Show Gist options
  • Save bjhomer/cc3f3155d3b109f61601 to your computer and use it in GitHub Desktop.
Save bjhomer/cc3f3155d3b109f61601 to your computer and use it in GitHub Desktop.
LLDB and Swift Arrays are not friends.
// What I would expect:
(lldb) p newPaths
([AnyObject]) $R1 = 2 values {
[0] = "This is a string",
[1] = "This is another string"
}
// What I actually get:
(lldb) p newPaths
([AnyObject]) $R1 = 2 values {
[0] = (instance_type = Builtin.RawPointer = 0x000060800005cc80 -> 0x00007fff71d0e538 (void *)0x00007fff71d0e4e8: __NSCFString)
[1] = (instance_type = Builtin.RawPointer = 0x000061000024aaa0 -> 0x00007fff71d0e538 (void *)0x00007fff71d0e4e8: __NSCFString)
}
// 'po' doesn't help
(lldb) po newPaths
2 values
{
[0] = (instance_type = Builtin.RawPointer = 0x000060800005cc80 -> 0x00007fff71d0e538 (void *)0x00007fff71d0e4e8: __NSCFString)
[1] = (instance_type = Builtin.RawPointer = 0x000061000024aaa0 -> 0x00007fff71d0e538 (void *)0x00007fff71d0e4e8: __NSCFString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment