发布于 2015-11-06 15:12:22 | 338 次阅读 | 评论: 0 | 来源: PHPERZ

这里有新鲜出炉的精品教程,程序狗速度看过来!

PhpStorm PHP开发工具

PhpStorm是一个轻量级且便捷的PHP IDE,其旨在提供用户效率,可深刻理解用户的编码,提供智能代码补全,快速导航以及即时错误检查。


1.下载xdebug文件

http://xdebug.org/wizard.php

将phpinfo()的源代码复制到文本框中,xdebug会提示如何配置和下载哪个版本的xdebug。

全部下载地址:

http://www.xdebug.org/download.php

2.配置php.ini,在末尾加上。

[xdebug]
zend_extension="php_xdebug-2.3.3-5.6-vc11.dll"
xdebug.remote_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
xdebug.idekey = PHPSTROM

3.chrome的xdebug配置

在IDE key里将其配置成“phpStorm”

项目地址:https://github.com/mac-cain13/xdebug-helper-for-chrome

4.phpStorm的相关配置

打开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退出设置。

5.其他配置:

在phpStorm里打开监听(电话按钮)。

对apache进行重启,如使用命令行:net stop apache24 & net start apache24;

查看xdebug是否正确配置:进入到php.exe目录:执行php.exe -m可以查看相关模块。



最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务