Magento – Set debugging phpStorm for magento application

magento-1.6php-5.4phpstorm

I'm new to Magento. I'm used to working in dot net, where you can place the debugger where you need, so that you can identify bugs and other issues.

So, now I am learning Magento with phpStorm. Please let me know how to set line by line debugging from my custom module?

thanks in advance.

Best Answer

Nothing specific to setup, in your server install xdebug debugger, make sure that you see it listed in phpinfo output in a file in your Magento root. Then turn on "Start listen for php debug connections" from Run menu or toolbar icon. Place your break points wherever you want. Use php storm bookmarklet to initiate debug session with cookie. If all is successful PhpStorm will popup on your break point whenever the code reaches it.