phpstorm配置xdebug(win)

1.下载debug文件

http://xdebug.org/wizard.php
将phpinfo()的源代码复制到文本框中,xdebug会提示如何配置和下载哪个版本的xdebug。下载完放在PHP扩展目录里。

2.配置php.ini

[xdebug]
zend_extension="E:\work\php\ext\php_xdebug-2.4.1-5.4-vc9.dll"
xdebug.remote_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9001
xdebug.idekey = PHPSTROM
//用phpinfo或php.exe -m查看模块是否安装成功

3.在phpstorm里配置服务
File->setting->Languages->PHP->Servers

File->setting->Languages->PHP->Debug
这里写图片描述
File->setting->Languages->PHP->DBGp Proxy
这里写图片描述

4.在浏览器里安装xdebug插件

猜你喜欢

转载自blog.csdn.net/qq_17088237/article/details/52143972
今日推荐