Re: Debugging a static library
Re: Debugging a static library
- Subject: Re: Debugging a static library
- From: Jens Alfke <email@hidden>
- Date: Sun, 30 Oct 2011 13:38:35 -0700
On Oct 30, 2011, at 12:39 PM, Todd wrote:
> • 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 _think_ this is supposed to work, as long as the library is built with symbols and the source files are still available at the same paths.
If it doesn’t, the next thing I would try is adding the project that builds the library to your application’s project/workspace.
> • 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.
That’s a pretty strong indication that those statements aren’t reached. If they were they’d show up in the console output. So either
(a) your intuition about what code is being called is wrong for some reason; or
(b) the linker isn’t linking the copy of the library you built, but some other copy of it.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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