Created
October 31, 2014 17:06
-
-
Save bjhomer/cc3f3155d3b109f61601 to your computer and use it in GitHub Desktop.
LLDB and Swift Arrays are not friends.
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
// 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