Xcode debugger sometimes doesn't display variable values?

后端 未结 19 2100
醉话见心
醉话见心 2020-12-14 13:54

This happens to me pretty often. For example, right now I have the debugger stopped at a breakpoint in a method . . . and it isn\'t displaying any variable values at all.

相关标签:
19条回答
  • 2020-12-14 14:51

    I have been stuck a while with this problem and finally find out a solution. I think that many reason can causes this bug but in my case here is the solution. While you are in the breakpoint position check the included classes. I was including using double quote a file which was located using include path.

    #include "MyClass.h"
    

    instead of

    #include <MyPorject/MyClasses/MyClass.h>
    

    So if you have this problem try to double check your inclusion and import. I know it seems weird but worked for me and I have been able to reproduce it by putting back the Double-Quote include.

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