Questions tagged «xdebug»

4
Magento 2在没有cron的情况下运行特定的Cron:run CLI命令?
长话短说,使用典型代码时,xdebug无法可靠地在我的cron文件中的断点处停止: php bin/magento cron:run Xdebug都已正确安装,有时它可以工作,但有85%的时间它无法工作,只是挂在CLI中,直到我关闭侦听phpstorm中的连接。 有没有办法以某种方式仅运行一个cron文件?我实际上必须将cron文件的内容复制并粘贴到单独的控制台命令中,才能在xdebug中正确测试它,这并不理想。 在Magento 1.x中,我曾经使用AOE Scheduler通过Xdebug来测试cron作业,方法是去管理员,选中我想要的那个,然后从下拉列表中选择run,它运行良好。 我正在寻找使用类似的东西: php bin/magento modulename:cronjob 即使没有计划,它也应始终运行cron。
14 magento2  cron  cli  xdebug 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.