To see the values ββinside the arrays in the xcode debugging area, select the GDB debugger in your project scheme and specify the variables that you want to see as private variables.
Starting with xcode 4, the default debugger is LLDB. To switch to GDB, click on the project name in the diagrams (next to the Stop button next to the project window) Select "Edit Schema ..." and then select GDB in the debugger.
One way to define a property variable so that in the debug area you can see the private variable in the header file that the @property operator has.
@interface SomeObject : NSObject { @private NSMutableArray *someArray; // Allows visibility in Debug Area } @property (nonatomic, strong) NSMutableArray *someArray; @end
source share