Xcode 3.2。调试共享库不起作用

发布于 2024-12-12 13:54:33 字数 421 浏览 4 评论 0原文

Xcode 3.2.6、10.6.8、C++ 项目,带有一些 Objective-C。

我有一个使用共享库的项目(我拥有所有代码并且可以随时构建)。当我到达共享库时,我在某个地方崩溃了,但我不明白为什么。我的项目中拥有构成共享库的所有 .h 文件,并且链接到 .a。我构建和链接没有错误。

这是我尝试过的:

  1. 我已经使用调试符号构建了共享库
  2. ,我在共享库 .cpp 文件中放置了一个断点,我应该在其中输入,但 Xcode 不会在此停止。
  3. 我尝试将 NSLog 语句放入共享库中并再次构建它,看看它们是否出现在控制台中,但我看不到它们在崩溃之前的位置。

如何调试在共享库中崩溃的应用程序。我似乎记得几年前我可以在 Metrowerks 做到这一点。

感谢您的建议。

Xcode 3.2.6, 10.6.8, C++ Project, with a bit of Objective-C.

I have a project that uses a shared library (that I have all the code for and can build whenever). I am crashing someplace when I reach the shared library and I cannot figure out why. I have all the .h files that make up the shared library in my project and I link to the .a. I build and link without errors.

Here is what I have tried:

  1. I have built the shared library with Debug symbols
  2. I have placed a break-point in the shared library .cpp file where I should enter but Xcode does not stop at it.
  3. I have tried placing NSLog statements in the shared library and building it again to see if they show up in the console and I dont see where they do before the crash.

How does one debug an app that crashes in a shared library. I seem to recall I could do this in Metrowerks years ago.

Advice is appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文