在https://xdebug.org/wizard.php中输入你的phpinfo()信息,并点击提交.
会指引你下载相对应版本的扩展,并告诉你移动的目录下面,重启
在php.ini中添加
[xdebug] zend_extension = "your\php\ext\php_xdebug-2.6.1-7.0-vc14-nts-x86_64.dll" xdebug.idekey=PHPSTORM(与Languages & Frameworks > PHP > Debug > DBGp Proxy 中的IDE key保持一致) xdebug.remote_autostart=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_host="127.0.0.1" xdebug.remote_log="your\log\xdebug.log" xdebug.remote_port=9001(与Languages & Frameworks > PHP > Debug中的Debug port保持一致)
点击Validate进行验证(下面是成功的)