• 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: Can I debug MachO plugin in CFM app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I debug MachO plugin in CFM app?


  • Subject: Re: Can I debug MachO plugin in CFM app?
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 24 Feb 2004 10:50:38 -0800

On Feb 24, 2004, at 10:14 AM, jason rusoff wrote:

Is there a way to use xcode to debug a MachO plugin running under a CFM app? Can I attach GDB to the process once the plugin is loaded, and then set breakpoints in the source in xcode?

You don't even need to do that; just use the Xcode Executables Editor to configure your launch settings.


- From the Project menu, choose New Custom Executable...
- Use /System/Library/Frameworks/Carbon.framework/Versions/A/Support/ LaunchCFMApp as the executable
- In the Executable Editor, configure the "Launch Arguments" to be the path to the CFM executable (not the .app package, the .app/Contents/MacOS/MyApp executable itself)
- Remember to check the radio button next to your new executable to make it the default


Now when you run or debug, the CFM app will be launched. If it loads your Mach-O plugin, your breakpoints should be hit.

Chris _______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Can I debug MachO plugin in CFM app? (From: jason rusoff <email@hidden>)

  • Prev by Date: Re: Subversion and Interface Builder; was YANP (Yet Another Nib Problem)
  • Next by Date: Re: VS.NET-style code outlining?
  • Previous by thread: Can I debug MachO plugin in CFM app?
  • Next by thread: making xcode handle headers with .hh extension
  • Index(es):
    • Date
    • Thread