• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debug static linke libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debug static linke libraries


  • Subject: Re: Debug static linke libraries
  • From: Andreas Grosam <email@hidden>
  • Date: Fri, 04 Nov 2011 09:16:25 +0100

On Nov 3, 2011, at 10:34 PM, koko wrote:

> My app links to a number of bsd static libs written in c++.
>
> My build config for these libs is Debug.
>
> I set a break point in one of the libs which is not hit.
>
> In XC 3 this always worked.
>
> Am I missing something in xc 4?

Are debug information included in the lib's target - and not stripped?

Are you using an Xcode Workspace where the app's project and the lib's project are included?

How did you establish the linking to the static library in the app's target?

In Xcode, can you navigate from a symbol in the app's source to the definition in the library?

Does the lib compile when you made changes to their sources and build the App?

How did you set the header search path for the app's target to the lib's public headers?

Where are the public headers and the static archive (libxx.a) located? (Should be ${BUILT_PRODUCTS_DIR})

Where did you set the break point in the lib's source - in a public header, private header or a .cpp file?


I didn't experience problems (anymore and so far) with break points in Xcode 4.2.  But currently, I'm exclusively using "header only" C++ libraries which are solely templates. That used to be a big problem in Xcode 3.x. Now it works fine. Debugging into an Objective-C static library does also work well.

Andreas

>
> -koko

 _______________________________________________
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

References: 
 >Debug static linke libraries (From: koko <email@hidden>)

  • Prev by Date: Re: -performSelector: exception... in one build configuration
  • Next by Date: Re: Assessor Syntax: Why use (id with protocol) vs (class name *)?
  • Previous by thread: Re: Debug static linke libraries
  • Next by thread: Re: Printing the List of Warnings/Errors as seen within Xcode 4.2
  • Index(es):
    • Date
    • Thread