简体   繁体   English

如何调试iOS应用程序中的迦太基(自有)依赖项?

[英]How can I debug carthage (owned) dependencies in my iOS application?

I have an iOS application project with couple of private(owned) carthage dependencies, sometimes I'm in the need of debugging bugs or to know what is the code executed by certain methods. 我有一个带有几个私有(自有) carthage依赖项的iOS应用程序项目,有时我需要调试bug或了解某些方法执行的代码是什么。

I'd like to know if there is an easy way to setup the framework source code in Carthage/Checkouts using a run script, so that if I do a carthage update and run my app a can debug the frameworks source code without the need of adding sub projects. 我想知道是否有一种简单的方法可以使用运行脚本在Carthage/Checkouts设置框架源代码,因此,如果我进行迦太基更新并运行我的应用程序,则可以调试框架源代码而无需添加子项目。

Can this be done by including the debugging symbols in the framework build if so what would I need to do, to make it work? 可以通过在框架构建中包含调试符号来完成此操作,如果需要,我需要做些什么才能使其正常工作?

Did you tried to copy the dsym files as mentioned in Carthage - Getting Started ? 您是否尝试按照《 迦太基入门》中所述复制dsym文件?

With the debug information copied into the built products directory, Xcode will be able to symbolicate the stack trace whenever you stop at a breakpoint. 将调试信息复制到内置产品目录中后,只要您在断点处停止,Xcode就可以表示堆栈跟踪。 This will also enable you to step through third-party code in the debugger. 这还将使您能够逐步调试器中的第三方代码。

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

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