How do I know that Broadcast Upload Extension is working?

My iOS app is an extension to Broadcast Upload. I would like to know that this extension app is running from my container app.
In the WWDC video, it was stated that you can find out by UIScreen.main.isCaptured, but you can't know which Extensions are being captured by which.
One way I thought of doing this is to add a Key like isRunning to the UserDefaults This is a way to create and update this regularly. But I don't think this is a good way to do it.
Is there an API or better way to know this?
Thank you.
The simplest way is to use logging in your broadcast extension, then use the Console app to filter and watch for messages produced by the extension.

You can also watch the logging in Xcode:
  1. Run your container app on the device first, to make sure the extension is installed. (This step may not be necessary, but it's the safest way to ensure that the container app has been installed on the device.)

  2. If the app you are recording (the "client" app) is not your container app, make sure it's also installed on the device. (Note that you can deliver a broadcast extension in a container app for use by other apps. That's why there's a distinction between "container" and "client".)

  3. Set your Xcode scheme to run the upload extension target, not your app.

  4. Run the extension target via that scheme.

  5. Xcode will ask you to choose a client app to run. Scroll down the list and choose the client app you previously installed. (On subsequent runs, that app will appear at the top of the list.)

  6. Once the broadcast extension starts running, you will see its log messages in the Xcode console pane.

You can also set breakpoints in your upload extension, but blocking execution by stopping at a breakpoint may cause the broadcast to be cancelled, so this might not be a complete debugging workflow.
Thanks Polyphonic for the reply. But there seems to be a discrepancy with what I really wanted to hear. (I'm not very good at English, so I apologize if my English sounds funny.)
I am able to debug the extension app in the container app. Here's an example of the process I want to do.
  1. start broadcasting in the extension app from the control center.

  2. open the container app.

  3. display a different screen than normal only when you are broadcasting.

We want to do this process in the release build as well. Is there any way to do this?
Thank you.

add below observer to detect screen share start stop

NotificationCenter.default.addObserver(forName: UIScreen.capturedDidChangeNotification, object: UIScreen.main, queue: OperationQueue.main) { (notification) in}

How do I know that Broadcast Upload Extension is working?
 
 
Q