Debug Xcode 4

since moving to Xcode 4. I am completely puzzled by the debugging view, since I cannot see the values ​​of arrays / dictionaries, etc.

In Xcode 3, could I view the debug console and see the actual values ​​stored?

+4
source share
2 answers

Debug information is now displayed in the debug navigator (Cmd-5) and the debug area (Shift -cmd-Y).

You can enable these areas by default when the application starts (or click a breakpoint) by switching the settings on the Behavior tab in Xcode settings.

+9
source

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 
+1
source

Source: https://habr.com/ru/post/1344579/


All Articles