php+phpStorm+xdebug配置方法

來源於:http://www.cnblogs.com/myall/p/4813552.html

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 = 9000xdebug.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可以查看相關模塊。

相關文件下載地址:

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

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章