PHPstorm下配置xdebug安裝與調試

聲明:個人開發環境是windows+wampserverphp

我是使用的wampserver集成開發環境,安裝完成以後自帶xdebug擴展,插件所在目錄爲 我是使用的wampserver集成開發環境,安裝完成以後自帶xdebug擴展,插件所在目錄爲

F:\wamp\bin\php\php5.5.12\zend_ext

若是沒有該擴展文件,須要到xdebug官網下載,下載XDebug下載地址:http://www.xdebug.org/ , 必須下載跟機器上安裝的php匹配的版本才行。具體下載方法以下:將phpinfo()網頁的源代碼拷貝到http://www.xdebug.org/find-binary.php , 而後按照指導安裝便可。以下圖所示: html

其餘具體配置請參考 http://www.javashuo.com/article/p-znwqudxo-ge.html ,這裏只以wampserver舉例apache

修改配置文件

須要修改兩個配置文件,路徑分別是windows

F:\wamp\bin\php\php5.5.12\php.ini
F:\wamp\bin\apache\apache2.4.9\bin\php.ini

添加如下內容bash

[xdebug]
zend_extension = "f:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "f:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.idekey= PHPSTROM

配置PHPstrom

而後就能夠愉快的使用 debug進行調試了ide

相關文章
相關標籤/搜索