Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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.

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?

like image 207
Black Sheep Avatar asked Jul 24 '16 02:07

Black Sheep


1 Answers

Did you tried to copy the dsym files as mentioned in Carthage - Getting Started?

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. This will also enable you to step through third-party code in the debugger.

like image 174
ObjectAlchemist Avatar answered Oct 14 '22 23:10

ObjectAlchemist