Xcode 3.2。调试共享库不起作用
Xcode 3.2.6、10.6.8、C++ 项目,带有一些 Objective-C。
我有一个使用共享库的项目(我拥有所有代码并且可以随时构建)。当我到达共享库时,我在某个地方崩溃了,但我不明白为什么。我的项目中拥有构成共享库的所有 .h 文件,并且链接到 .a。我构建和链接没有错误。
这是我尝试过的:
- 我已经使用调试符号构建了共享库
- ,我在共享库 .cpp 文件中放置了一个断点,我应该在其中输入,但 Xcode 不会在此停止。
- 我尝试将
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:
- I have built the shared library with Debug symbols
- I have placed a break-point in the shared library .cpp file where I should enter but Xcode does not stop at it.
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论