Saturday, December 3, 2016

Swift Sequence Contents in LLDB

If you need lldb to give you more information about objects in a Swift Sequence structure other than their address in memory, here's a useful tip:


(lldb) po mySequence.flatMap({$0.description})

Of course you can use any property off the sequence element that makes more sense to you.

No comments:

Post a Comment