xcode 4 debugging shows 'Summary Unavailable' for most objects

后端 未结 7 2176
广开言路
广开言路 2020-12-16 10:08

Whilst using Xcode 4.0 and trying to debug and see what value is held in what variable - or see what objects are in an array etc, I always seem to get \"Summary Unavailable

相关标签:
7条回答
  • 2020-12-16 10:50

    You can also try changing the "Summary Format" in the GDB window. Try something like {(NSString *)[$VAR description]}:s as the Summary format - this works for NSManagedObject derived objects.

    0 讨论(0)
  • 2020-12-16 10:51

    I had that problem. If you explicitly declare the ivars in your h file, they should show up in the debugger as expected.

    @synthesize will create the proper ivers for you, but it does not always make them accessible in the debugger endless you use the command line po to look at them.

    0 讨论(0)
  • 2020-12-16 10:52

    While waiting for Apple to fix Xcode 4 you can try using "Print Description", which prints the value to console.

    0 讨论(0)
  • 2020-12-16 10:52

    Start your app up in debug

    IN XCODE 4.02, go to Product/Debug/Shared Libraries

    The window that appears tells you which dynamicLibs are loaded

    Scroll down until you see "libXcodeDebuggerSupport.dylib Click the "Load" button, and then "Done"

    After stopping on a breakpoint, the contents of a string should be printed in blue after the object's address.

    Hope this helps!

    0 讨论(0)
  • 2020-12-16 10:57

    This happened to me upon upgrade to xCode 4.3.1.

    I found that editting the Run/Debug scheme and changing the Debugger setting in the Info tab from LLDB to GDB fixed the problem.

    0 讨论(0)
  • 2020-12-16 10:59

    I have battled this issue for quite a while and I finally figured out the issue. I have several build configurations in my application (Debug, Release, UAT). When I hit 'Run' on my main scheme then I am using the 'UAT' configuration -- not 'Debug'. I realized that I was stripping debug symbols for my 'UAT' and 'Release' configurations. I simply modified my build settings to not strip debug symbols for the 'UAT' build configuration and voila, all my symbols are available again.

    Build Settings -- Strip Debug Symbols

    I am using XCode 4.5.1, but have seen this issue for quite a while on various projects. I assume that most of my projects use the 'Debug' build configuration by default and therefore were working fine. Only when I started getting fancy with my schemes and build configurations did I come across this issue.

    0 讨论(0)
提交回复
热议问题