Home > php教程 > php手册 > body text

php+phpStorm+xdebug配置方法,phpstormxdebug

WBOY
Release: 2016-06-13 08:54:30
Original
1627 people have browsed it

php+phpStorm+xdebug配置方法,phpstormxdebug

1.下载xdebug文件

http://xdebug.org/wizard.php

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

全部下载地址:

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

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

<span>[xdebug]
zend_extension</span>="php_xdebug-2.3.3-5.6-vc11.dll"<span>
xdebug</span>.remote_enable =<span> On
xdebug</span>.remote_handler = "dbgp"<span>
xdebug</span>.remote_host = "localhost"<span>
xdebug</span>.remote_port = 9000<span>
xdebug</span>.idekey = PHPSTROM
Copy after login

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可以查看相关模块。

相关文件下载地址:

http://pan.baidu.com/share/link?shareid=1091659896&uk=3829305083

http://pan.baidu.com/share/link?shareid=1099541549&uk=3829305083

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template