Xcode 7.3 debugger not showing custom class variables

只愿长相守 提交于 2019-11-30 06:40:54

Phew ..

The pictured setting did it for me .

Also a Option Clean Build is imperative after making the changes .

Only changing the Clang Module Debugging also works , but halting at breakpoints displays a warning .

"could not load any Objective-C class information from the dyld shared cache"

Other observations : When changing the build settings back to original , clicking the triangle the variable values do still show (from memory I guess) for the last breakpoint (from the altered settings) , but variables at other breakpoints don't .

Again , Never had such issues with prior versions of Xcode .

Edit :

The DWARF setting can be avoided . Works fine without it .

Edit :

Also if you are using Cocoapods , you might need to recreate the xcworkspace .

If you're hesitant to change Build Settings, you can pull up additional information by casting the variable with its own class, though (frustratingly) you have to do it per variable. This works even for self.

For a class MyClass, right-click/control-click in the debugging variable list and choose "Add Expression". Add in the name of the class, plus the name of the variable: (MyClass *)self or (MySubClass *)subclassVariableName.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!