Debug yii2 project with XDebug and PHPStorm

add Xdebug for PHP
docs of adding Xdebug for PHP can be found here, and then add the following config section to php.ini
:
[Xdebug] zend_extension="PATH_TO_XDEBUG_EXT\php_xdebug-2.5.0.dll" xdebug.default_enable = 1 xdebug.remote_autostart = 0 xdebug.remote_enable = 1 xdebug.remote_port = 9001
and make sure that Xdebug is enabled by checking phpinfo():
add local PHP interpreter setting
add PHP server setting
update Xdebug setting
add PHPStorm Run/Debug configuration
add break point