• 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: Breakpoints in subprojects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breakpoints in subprojects?


  • Subject: Re: Breakpoints in subprojects?
  • From: Chris Friesen <email@hidden>
  • Date: Fri, 1 Jul 2005 15:43:38 -0700


On Jul 1, 2005, at 12:12 PM, Justin Greenfield wrote:

I'm curious as to what I'm doing wrong in this situation...

I have a project, a cocoa application, that makes use of some carbon static libraries we've written.  The cocoa project is set up with dependencies on the carbon static lib subproject.  So in my CocoaApp.xcodeproj I have added FooLibrary.xcodeproj and made the CocoApp target depend on FooLibrary's target, libFoo.a.

I need to break down inside of libFoo.a... so I open FooLibrary.xcodeproj, go to the line of code where I need to break, and add the breakpoint.  Then, back in CocoApp.xcodeproj, when I launch the debugger, the breakpoint down inside of libFoo.a doesn't fire.  If I set a breakpoint in CocoApp on the line where I call into libFoo.a then I can step down into the static lib's code and verify that it is being executed, but the breakpoint just doesn't work.  I do have debug symbols turned on, etc.

However, I also have another app, which is carbon based, that also depends on FooLibrary.xcodeproj, and when I debug that app, the breakpoints I've set in the subproject DO fire, like I expect.

To figure it out file a bug with the Xcode-GDB log:

1) Quit Xcode.
2) In Terminal, do:

$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
$ defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/IncludeInBug.log

3) Restart Xcode, and do whatever you need to to make it fail.
4) Attach /tmp/IncludeInBug.log to the Radar.

Thanks,
ChrisF

 _______________________________________________
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: 
 >Breakpoints in subprojects? (From: Justin Greenfield <email@hidden>)

  • Prev by Date: Re: Debugger Window Looses Thread View
  • Next by Date: Shark problem: can't see source code
  • Previous by thread: Breakpoints in subprojects?
  • Next by thread: viewing globals
  • Index(es):
    • Date
    • Thread