How to debug the scheduler tasks in Shopware 6

Hi
Is there any easy way to debug the scheduler tasks?
it’s very difficult to test this.
Sometimes the messenger:consume command doesn’t show the output.

You can configure the queue to execute in sync. When the message is dispatched it will be also handled directly in the same request