Print an NSArray in LLDB

lldb

Solution

The description method on NSArray iterates through the objects in the array and does a description on them. No need to invent anything:

po [fooArray description]

Problem

What's your favorite way to print the contents of an `NSArray` using LLDB? A python script? An inline for loop? An Objective-C method call? I know it's easy to print an object by index. I want to print all objects at once.

Original source