XCode 4.6 breakpoints not working

I've just upgraded to XCode 4.6 and iOS 6.1 and breakpoints have stopped working in the simulator (not tested device). Changing debuggers to GDB fixes it but I usually work with LLDB.

Nothing in the project has changed, they just stopped working after the upgrade. I've cleaned and deleted derived data and checked all of the debug settings but nothing is wrong.

Is anyone else getting this?

Max


We are experiencing the same problem with our iOS project. This seems to be a new bug in LLDB or XCode 4.6. I just filed a bug report with Apple and would recommend doing the same.

This topic in the Apple Dev forums suggests that the issue might be related to the location of the source files inside the project's directory hierarchy: https://devforums.apple.com/message/754512


I have found that, for us at least, this problem is to do with the way we compile. We use the "unity" theory of compilation where the project is split into sub-projects, each with a single source file that includes all of the other source files. Our issue seems to be that LLDB doesn't break in included cpp files. This is due to how the compiler in-lines files.

The solution is here:https://stackoverflow.com/a/17693317/683614


Another stupid "user error" is what happened to me - I overrode a method in a category, but continued to put breakpoints on the code that was no longer being called. Of course it wasn't getting hit. Facepalm!

链接地址: http://www.djcxy.com/p/68676.html

上一篇: 在XCode 4.6中表示符号

下一篇: XCode 4.6断点不起作用