在window环境下集成环境 wamp 下使用phpstorm来使用xdebug
配置php.ini
- zend_extension = "D:\xampp\php\ext\php_xdebug.dll"(根据实际情况确定)
- xdebug.remote_enable =1
- xdebug.remote_handler = "dbgp"
- xdebug.remote_host = "localhost"
- xdebug.remote_mode = "req"
- xdebug.remote_port = 9000
- 下面是客户端调试,打开phpStorm,进入File>Settings>PHP>Servers,这里要填写服务器端的相关信息,name填localhost,host填localhost,port填80,debugger选XDebug
- 进入File>Settings>PHP>Debug,看到XDebug选项卡,port填9000,其他默认
- 进入File>Settings>PHP>Debug>DBGp Proxy,IDE key 填 phpStorm,host 填localhost,port 填80
- 点OK退出设置。
打开firefox进入应用商店,搜索xdebug,安装 the easiest Xdebug
http://www.chenxuanyi.cn/xampp-phpstorm-xdebug.html