简体   繁体   English

Xcode调试器找不到我的文件

[英]Xcode debugger does not find my files

I have taken over a rather large and complex project. 我已经接管了一个相当大而复杂的项目。 A part of it is a static (C++) library, which is produced by an Xcode file (which actually was generated by CMake, I believe …) 它的一部分是静态(C ++)库,它由Xcode文件生成(我相信实际上是由CMake生成的)。

The App itself is in a completely different project. 该应用程序本身是一个完全不同的项目。

When I debug the app and want to step into the library, only assembly is shown. 当我调试应用程序并想要进入库时,仅显示程序集。 The symbols all seem to be there, prominently the output starts with MyApp'Foo::bar(char const*) at Foo.cpp:102: , and I see things like 0x1507a6: bl 0x150838 ; Foo::fazbar(int) at Foo.cpp:206 这些符号似乎都在那里,特别是输出从MyApp'Foo::bar(char const*) at Foo.cpp:102: ,我看到了类似0x1507a6: bl 0x150838 ; Foo::fazbar(int) at Foo.cpp:206 0x1507a6: bl 0x150838 ; Foo::fazbar(int) at Foo.cpp:206

This, to me, says that symbolification is there and actually working. 对我而言,这表示象征在那里并且在实际起作用。

Now, Foo.cpp is on my machine. 现在,Foo.cpp在我的计算机上。 I can open that file, and indeed, on line 206 Foo::fazbar is called. 我可以打开该文件,并且确实在第206行Foo :: fazbar被调用。

The output from nm and otool does not look suspicious, either. nmotool的输出也不是可疑的。

Why is lldb (Xcode's debugger) not finding my file? 为什么lldb(Xcode的调试器)找不到我的文件? How can I tell lldb where the files are? 如何告诉lldb文件在哪里?

Any pointers are appreciated. 任何指针表示赞赏。

与构建库时相比,您是否在移动源文件?

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

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