I have xDebug and IntelliJ setup to debug Craft and can run a debug profile where it stops on a breakpoint in index.php and interprets all the variables, etc. in IntelliJ console. However, it never gets to the plugin action when running host/plugin/someaction which has in that action a breakpoint.

Any suggestions?

  • Are you sure your plugin's action is being hit? If you hit it in a browser with die('here'); in it you can verify.
    – Brad Bell
    Commented Nov 27, 2015 at 17:30
  • Hi @BradBell thanks for the comment. Yes the plugin works fine but since we are adding more complexity to it we needed to have the ability to debug it. FYI we used this example sitepoint.com/install-xdebug-phpstorm-vagrant skip to the Configuring PHPStorm – Servers part. Again adding a breakpoint in public/index.php on $craftPath = '../craft'; it debugs. Commented Nov 27, 2015 at 17:58
  • Have you gotten the path mappings setup correctly?
    – megatrond
    Commented Nov 27, 2015 at 18:02
  • @megatrond we can debug anything from within the craft/app, craft/config. Our path mapping is mapped at the root of the project where you have the craft and public folder and for the public folder we also added the absolute path on the server. We tried putting a breakpoint on other plugins but no success. Commented Nov 27, 2015 at 20:22

1 Answer 1


Right! setting the mapping to the specific file, in this case the controller of plugin made it all work.

Thanks again for taking the time!

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.