XAMPP PHPSTORM XDEBUG 配合使用

1.xdebug 配置

安装完xampp 进入 php.ini

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.idekey="PHPSTORM"
xdebug.remote_enable = On
xdebug.remote_host = "localhost"
xdebug.remote_port=9000
xdebug.remote_handler = "dbgp"

上述配置完后后,开始-运行-cmd

在cmd中输入 php.exe 的路径 c:\xampp\php\php.exe –m

 image

出现下图所示表示xdebug配置成功

image

2.phpstorm

File-Settings-Servers

image

 

File-Settings-Debug

image

File-Setting-Debug-DBGp Proxy

image

3.PHPStorm 主界面中点击 View

image

image

image

image

在Server中选择刚才所创建的服务

image

点击OK后,image,点击一下,变成

image这种状态。

4.测试

断点后点击小虫子就可以了。

posted @ 2014-08-19 13:55  Crawford  阅读(350)  评论(0编辑  收藏  举报