• 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: Attach to Process to debug Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attach to Process to debug Framework


  • Subject: Re: Attach to Process to debug Framework
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 19 Sep 2006 12:22:17 -0700

On Sep 19, 2006, at 10:13 AM, Clark Goble wrote:

Hi, I'm having a ton of difficulty debugging a Framework that a client is using.  We obviously have the project that built the Framework but only the finished version of their program that uses the Framework.  I can attach to their program using either gdb at the command line or with the Attach menu in XCode.  But I can't seem to get it to break within my Framework.  Is there something special I have to do?


This is easy in Visual Studio.  I just build my dll, make sure it is copied over to replace the dll the other application is using and then attach.  As soon as it enters my dll code all my breakpoints work from within my VS project.  I assume there is a way to do this in XCode just as easily but I can't seem to get it to work.  Am I missing something obvious?


Bump.


I take it this simply can't be done on OSX?  This is a huge flaw in the development system if true.


Except for the fact that it can, so it isn't.

"Debugging Arbitrary Applications With Xcode"
http://developer.apple.com/documentation/developertools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/06_02_db_set_up_debug/chapter_40_section_9.html

The main issue is to make sure that the application is using the copy of the framework that was built by the Xcode project, not just any old installed (or embedded) copy of the framework.  Launching the app from the Finder and attaching usually won't set this up right, but launching the app with a Custom Executable inside Xcode will.

Chris 
 _______________________________________________
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

  • Follow-Ups:
    • Re: Attach to Process to debug Framework
      • From: Clark Goble <email@hidden>
References: 
 >Attach to Process to debug Framework (From: Clark Goble <email@hidden>)
 >Re: Attach to Process to debug Framework (From: Clark Goble <email@hidden>)

  • Prev by Date: Re: Build Styles corrupted?
  • Next by Date: Regarding atos and arch
  • Previous by thread: Re: Attach to Process to debug Framework
  • Next by thread: Re: Attach to Process to debug Framework
  • Index(es):
    • Date
    • Thread