Debug MediaExtension plugin in system exectutable?

I am developing a macOS 15 MediaExtension plugin to enable additional codecs and container formats in AVFoundation

My Plugin is sort of working, but i'd like to debug the XPC process that AVFoundation 'hoists' for me from the calling app (ie - the process hosting my plugin instance that is managing the MESampleBuffer protocol calls for example)

Is there a method to configure XCode for interactive attaching to this background process for interactive debugging?

Right now I have to use Console + Print which is not fun or productive.

Does Apple have a working example of a MediaExtension anywhere?

This is an exciting API that is very under-documented.

I'm willing to spend a Code Review 'credit' for this, but my issues are not quite focused.

Any assistance is highly appreciated!

Debug MediaExtension plugin in system exectutable?
 
 
Q