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?

  • which IDE? php storm? Commented Jan 16, 2023 at 14:57
  • Now i use PHPStorm Commented Jan 16, 2023 at 15:18

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. Commented Jan 16, 2023 at 14:42

Your Answer

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

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