Re: Debugging cocoa
Re: Debugging cocoa
- Subject: Re: Debugging cocoa
- From: tahome izwah <email@hidden>
- Date: Fri, 20 Feb 2009 17:01:08 +0100
Wow, that is way too complicated, IMHO. This is how I do debugging:
(1) In your AU project, right click the "Targets" headline in the left
pane of the Xcode window ("Groups&Files").
(2) Choose "Add" -> ""New Build Phase" -> "New Run Script Build Phase"
(3) In the inspector add the line
cp -r $BUILT_PRODUCTS_DIR/$PRODUCT ~/Library/Audio/Plug-Ins/Components/
into the "script" field.
(4) Now, in the "Groups&Files" pane right click "Targets" and choose
"Add" -> "New custom executable".
(5) in the inspector choose /Developer/Applications/Audio/AU Lab.app
as the executable path and click on "Finish"
That's all there is to it. If you hit "Build" the AU will be compiled
and placed in the correct directory on your system for AULab to find
it. If you hit the "Debug" key you'll automatically start up AULab. If
you now load your AU and hit the breakpoint you should jump back into
the debugger.
HTH,
--th
2009/2/20 john smith <email@hidden>:
>
> Thanks for the reply.
> I didn't "set up" the project, I'm simply compiling the XCode template, with
> the only modifications being that I set AULab as my "custom executable".
> I have to copy it manually to the components folder (the project appears to
> be set up to do this, but it doesn't work).
>
> So, this is what I do:
> 1: Create AU cocoa view template in XCode
> 2: Compile and link (debug mode)
> 3: Setup AULab as executable
> 4: Set breakpoints in the cocoaview code
> 5: Open debugger window and run.
> 6: Load the plug-in in AULab (which automatically shows view). No
> breakpoints are activated.
>
> Thanks again,
> Michael Olsen
>> Date: Fri, 20 Feb 2009 12:52:31 +0100
>> From: email@hidden
>> To: email@hidden
>> Subject: Re: Debugging cocoa
>>
>> I do this about every day and it works great. Are you sure you've set
>> up your AU correctly (debug info and all that)?
>>
>> Did you include a shell script in the project that copies the AU to
>> the Components folder and did you set up the AU project so it launches
>> AULab as debug "custom executable"?
>>
>> --th
_______________________________________________
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