简体   繁体   English

断点未在 Xcode 7 中被击中

[英]Breakpoints not being hit in Xcode 7

I have an Xcode project which includes a sub project.我有一个包含子项目的 Xcode 项目。 After upgrading to Xcode 7 breakpoints in the sub project are not hit nor can I step into functions calls of the sub project.升级到 Xcode 7 后,子项目中的断点未命中,我也无法进入子项目的函数调用。 Some breakpoints do get hit but they just show assembly for the call so it seems the sub-project is not being symbolicated correctly.某些断点确实被击中,但它们只是显示调用的程序集,因此子项目似乎没有正确符号化。 I've checked all the usual sort of things ie is generating debug symbols, build configuration on debug is not release and things of this nature shown in Xcode project settings.我已经检查了所有常见的事情,即生成调试符号,调试时的构建配置未发布,并且在 Xcode 项目设置中显示了这种性质的事情。 Anything else I might be missing?还有什么我可能会遗漏的吗? In Xcode 6.4 this was not an issue.在 Xcode 6.4 中,这不是问题。

This was an issue with not having the correct debug information format set in the hosting project. 这是在托管项目中没有设置正确的调试信息格式的问题。 I resolved by creating a dummy/test Xcode project and comparing the debug file format detailed for each configuration to that in the trouble making project changing the debug information format to match the dummy/test project. 我通过创建一个虚拟/测试Xcode项目并将每个配置详细的调试文件格式与故障排除项目中的调试文件格式进行比较来更改调试信息格式以匹配虚拟/测试项目。

In some case this issue can't be related with broken link between the breakpoint and the Project/file.在某些情况下,此问题与断点和项目/文件之间的断开链接无关。 So try to remove the breakpoint and re adding it.所以尽量去掉断点,重新添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM