Here is my dev setup:
IDE: PhpStorm 9.0.2
Debugger: Xdebug 2.3.3
Message Queuing Server: RabbitMQ 3.5.6
PHP lib to connect to RabbitMQ server: php-ampqlib
To run my consumer, I use the CakePHP task and do the following:
../lib/Cake/Console/cort cron message_trigger_consumer
When I run this command, my consumer is UP and is waiting for a message that will come from Producer (for example: the "Save form" button, which sends an email with confirmation). Everything is still fine, but my two questions are:
1) Is there a way to debug a Consumer ? From my point of view, Consumer is working in a different process, so Xdebug cannot debug it
2) Is there a way to bind my Consumer process to my current debugging in PhpStorm + Xdebug?
If you do not understand my question, please show me your doubts.
source share