如何在OS X中调试框架

时间:2015-05-18 09:56:47

标签: xcode macos debugging frameworks sdl-2

SDL2框架导致我的应用程序崩溃。我想调试框架代码(即在框架内的文件中放置一个断点)来进一步检查问题。我怎么能这样做?

我有SDL2框架项目和源代码。我可以使用调试信息等来构建这两个项目。

我尝试将SDL2项目(Debug> Attach to Process ...> APPNAME)附加到我的应用程序的运行实例,但是我收到以下错误:

Lost connection to "My Mac". Restore the connection to "My Mac" and
run APPNAME again, or if APPNAME is still running, you can attach to
it by selecting Debug > Attach to Process > APPNAME.

如果无法调试框架,我想知道在OS X中调试第三方库的最佳方法.SDL2项目还提供了将库构建为静态或动态库的选项。

0 个答案:

没有答案