Xdebug for magento generally works, but there are problems with magerun, instead of debugging the cron class, debug n98-magerun2.phar occurs. I tried to configure path mapping, but it still debugs n98-mage run 2.phar. How can this be fixed?


1 Answer 1


Can you please tell me more about this. Because as per my knowledge,X-debug uses for the debugging and n98-mage run for the DB related things . Then I will help you more regarding this.

  • I want to debug the cron class of the task, through magerun I run the cron task once, in PHPStorm I listen to the magerun port, debugging begins, but for some reason the magerun2.phar file is debugged instead of the cron class of the task. Jan 16 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.