您的位置:首页 > 编程语言 > PHP开发

phpstorm + firefox + xdebug安装配置方法

2016-04-22 18:16 711 查看
在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

phpStorm里打开监听,就是一个电话一样的按钮。
在浏览器里打开XDebug工具,访问localhost,与phpStorm连接成功!

转载
http://www.chenxuanyi.cn/xampp-phpstorm-xdebug.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: