• 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: Debugging / Logging from AudioServerPlugIn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging / Logging from AudioServerPlugIn


  • Subject: Re: Debugging / Logging from AudioServerPlugIn
  • From: Seth Willits <email@hidden>
  • Date: Thu, 07 May 2015 14:16:57 -0700

Extremely puzzling. I swear to you I followed these steps *exactly* the other day, *many times*, and it never worked, but I fired it up today and it worked. I also finally see the logged messages in Console.

Bizarre.

Thanks.

--
Seth Willits



> On May 6, 2015, at 3:37 AM, Raveeshwara S <email@hidden> wrote:
>
> Hi,
>
> I could debug AudioServerPlugin, through coreaudiod in OS X 10.10.3 with Xcode 6.3 with the following:
>
> (Stop coreaudiod)
> sudo launchctl unload /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist
>
> Xcode:
> Edit scheme... > Run > Info
> Build configuration: Debug
> Debug executable: coreaudiod (/usr/sbin/coreaudiod)
> Debug process as: root
> Launch: Wait for executable to be launched
>
> Build your AudioServerPlugIn (.driver) and place it in /Library/Audio/Plug-Ins/HAL
>
> Xcode:
> Build & run
>
> (Start coreaudiod)
> sudo launchctl load /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist
>
> Reference:
> http://lists.apple.com/archives/coreaudio-api/2013/Mar/msg00039.html
> https://groups.google.com/forum/#!topic/coreaudio-api/PDQ3V5NrGI0
>
>
> For logging, I have either used syslog directly or via DebugMsg macro defined in NullAudio sample.
>
>
> Regards,
> Raveeshwara S
>
>
>
>> On 06-May-2015, at 13:09, Frederic De Jaeger <email@hidden> wrote:
>>
>> Hi,
>> Personaly, I'm logging to /Library/Preferences/Audio/mylogfile.
>> This is one of the few area you have access to from the sandboxed coreaudiod.
>>
>> About the breakpoints, I followed this
>> https://groups.google.com/d/msg/coreaudio-api/PDQ3V5NrGI0/RvsgjFHqqcwJ
>> and it worked (I did not try since I upgraded to 10.10 and the latest xcode, so make a prayer)
>>
>> Fred
>>
>>
>> 2015-04-24 2:04 GMT+02:00 Seth Willits <email@hidden>:
>> Two things:
>>
>>
>>
>> 1) I can manage to get the debugger to attach to coreaudiod, but it never stops on any breakpoints.
>>
>> I've read the past mailing list threads on debugging, for example
>> https://groups.google.com/d/msg/coreaudio-api/g5TrSW4hJFw/W6S8SZu7NE0J
>>
>> The debugger attaches as root when coreaudiod fires up, and I can pause the debugger and see the threads etc, but it never breaks on the breakpoints I have set in any of the functions in the AudioServerPlugIn which I know are being called. For example NullAudio_Create and NullAudio_QueryInterface in the Apple sample project.
>>
>>
>>
>> 2) I can't get any messages to show up in the system log. I've tried syslog and asl_log_message at variously increasingly critical log levels, and none of the messages show up in Console despite knowing that these functions are getting called.
>>
>>
>>
>> Between the two of these problems, I can't even begin to debug anything. Suggestions?
>>
>>
>>
>> --
>> Seth Willits
>>
>>
>>
>>
>> _______________________________________________
>> 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


References: 
 >Re: Debugging / Logging from AudioServerPlugIn (From: Frederic De Jaeger <email@hidden>)
 >Re: Debugging / Logging from AudioServerPlugIn (From: Raveeshwara S <email@hidden>)

  • Prev by Date: Error -12848 exporting AVComposition (kFigFormatReaderError_ParsingFailure)
  • Next by Date: Getting packets from ima4 file
  • Previous by thread: Re: Debugging / Logging from AudioServerPlugIn
  • Next by thread: Error -12848 exporting AVComposition (kFigFormatReaderError_ParsingFailure)
  • Index(es):
    • Date
    • Thread