# How to debug the scheduler tasks in Shopware 6

**URL:** <https://forum.shopware.com/t/how-to-debug-the-scheduler-tasks-in-shopware-6/87816>\
**Category:** Programming (EN)\
**Created:** [21. Mai 2021 um 10:21 UTC](https://forum.shopware.com/t/how-to-debug-the-scheduler-tasks-in-shopware-6/87816 "2021-05-21T10:21:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [21. Mai 2021 um 10:21 UTC](https://forum.shopware.com/t/how-to-debug-the-scheduler-tasks-in-shopware-6/87816/1 "2021-05-21T10:21:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [21. Mai 2021 um 11:54 UTC](https://forum.shopware.com/t/how-to-debug-the-scheduler-tasks-in-shopware-6/87816/2 "2021-05-21T11:54:52Z")

</div>

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

> **[Messenger: Sync & Queued Message Handling (Symfony Docs)](https://symfony.com/doc/current/messenger.html#handling-messages-synchronously)**
>
> Messenger: Sync & Queued Message Handling: Messenger provides a message bus with the ability to send messages and then handle them immediately in your application or send them through transports (...
