• 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: I can't get breakpoints to work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I can't get breakpoints to work?


  • Subject: Re: I can't get breakpoints to work?
  • From: William Stewart <email@hidden>
  • Date: Wed, 26 Mar 2008 11:12:01 -0700


On Mar 26, 2008, at 2:32 AM, Pierre-Jean Camillieri wrote:
Hi Bill

Thank you for your answer.
Actually, I had done 'this' (I was copying the file directly into the correct directory using a Copy Files build phase). Or do you mean it must be a symbolic link instead of an actual copy of the file?

Yes - it has to be a symbolic link, otherwise XCode can't find your binary to debug when you launch AULab


Bill



Otherwise, in case it helps someone else, I found a 'weird' turn around: switching the Active Build Configuration to Release (instead of Debug), without changing anything else, did the trick (just to be precise: I am using the projects templates from the SDK, and didn't make any major changes).

Thanks
Pierre


Le Mar 25, 2008 à 10:09 PM, William Stewart a écrit :

How are you loading your audio unit?

You have to have it built and placed into a special directory - typically ~/Library/Audio/Plug-Ins/Components

what we normally do to do this is:

% cd ~/Library/Audio/Plug-Ins/Components
% ln -s /Path/To/Your/Build/Dir/MyAU.component
% touch .

This creates a symbolic link from the components directory to your build dir's built product: MyAU.component.

Then it should work just fine.

If you do clean build, you have to do the above three steps again (after first removing the current sym link) - so we generally don't do clean builds, but just delete all the .o files :)

Bill

On Mar 25, 2008, at 4:52 AM, Pierre-Jean Camillieri wrote:
Hi guys

I am probably missing something obvious - I apologize for that -, but I checked older threads on that topic, and none could help me:
- I built a project in Xcode using the Audio Unit Instrument template
- I followed very carefully the instructions of the programming guide (adding a Copy Files build phase, specifying GarageBand or AU Lab as Custom Executables)
- I checked the Build settings for my target, and they do show that Generate Debug Symbols is checked.


Everything goes 'fine', I can load the effect, play with it etc on either Garage Band or AU Lab, but I can't get breakpoints to work (even when I set them in places where I know they should be hit - like in the constructor of the AU).

Is there something additional I need to do in Xcode? Just in case: I am on 10.5.2 with Xcode 3.0.

Thank you!
Pierre

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: I can't get breakpoints to work?
      • From: Brian Willoughby <email@hidden>
    • Re: I can't get breakpoints to work?
      • From: "Kevin Dixon" <email@hidden>
References: 
 >I can't get breakpoints to work? (From: Pierre-Jean Camillieri <email@hidden>)
 >Re: I can't get breakpoints to work? (From: William Stewart <email@hidden>)
 >Re: I can't get breakpoints to work? (From: Pierre-Jean Camillieri <email@hidden>)

  • Prev by Date: Re: MIDI driver hibernation problem
  • Next by Date: Re: Adding code for handling notes to an AU
  • Previous by thread: Re: I can't get breakpoints to work?
  • Next by thread: Re: I can't get breakpoints to work?
  • Index(es):
    • Date
    • Thread