I'm working with a Magento 2 queue at the moment. To debug Magento 2 console scripts I normally just hit 'listen to external connections' in PHPstorm and execute the CLI script (i'm using Valet+ with Xdebug on Mac).
With the new queue system of Magento 2.3 this, however, doesn't work. When I start my normal debugging workflow and I start queue processing with
bin/magento queue:consumers:start someConsumer and PHPstorm stops at the first line of
But it never reaches my actual consumer class. In my case this is
Vendor\Module\Model\Queue\Consumer::processMessage (as specified in
processMessage function is executed, and the breakpoints aren't hit.
So, how do I setup Xdebug to debug queue consumers in Magento 2.3?