Re: Source debugging of 3rd party framework
Re: Source debugging of 3rd party framework
- Subject: Re: Source debugging of 3rd party framework
- From: Jim Ingham <email@hidden>
- Date: Fri, 6 Feb 2009 11:06:54 -0800
If you build the framework with debug information (passing -g to the
compiler) you shouldn't need to tell gdb anything. If you actually
stop in code in your framework, Xcode should also show you that
source. If you want to set breakpoints in source BEFORE you run code
that loads the framework, however, you are going to have to tell Xcode
about it. Easiest thing to do is make an Xcode Project that contains
the source code, and us an "external makefile target" to build the
framework. Then Xcode will know about it in the usual course of things.
Note that if you have code that you want to debug which wasn't built
by Xcode, you will have to turn off the "Load symbols lazily"
optimization in the Debugging tab of the Xcode Preferences, since that
optimization relies on knowing which output products a given source
file contributes to to do its job.
Jim
On Feb 6, 2009, at 10:36 AM, Stuart Malin wrote:
I have downloaded and built from source and open source framework. I
am linking that framework to my app. I'd like to be able to use
Xcode to debug into that framework, and view source, not assembly
code. How do I tell Xcode/gdb that source files are available for
this framework?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden