Xdebug安裝對應版本與配置 - cxscode - 部落格園

來源:互聯網
上載者:User

標籤:dll   show   rac   storm   out   通過   profiler   struct   collect   

Xdebug安裝地址https://xdebug.org/download.php,進入下載頁面後點擊custom installation instructions,可以找到適合的Xdebug版本。

 如果你點擊了custom installation instructions,會進入下面的頁面,把本地運行phpinfo()後的頁面的html原始碼複製粘貼到輸入框,點擊下面的Analyse my phpinfo() output提交即可。

會跳到類似這樣的頁面,因為我已經安裝,所以顯示XDEBUG版本

 

1.下載php_xdebug-2.5.4-5.6-vc11-nts.dll

2.將下載的檔案移動到“C:\ Program Files(x86)\ PHP \ v5.6 \ ext”

3.更新C:\Program Files (x86)\PHP\v5.6\php.ini並更改行zend_extension = "C:\Program Files (x86)\PHP\v5.6\ext\php_xdebug-2.5.4-5.6-vc11-nts.dll"

4.重新啟動網路伺服器

 通過phpinfo()可以看到xdebug已安裝!!!

 

附上本人在php.ini的XDebug的配置資訊

12345678910111213141516171819202122232425262728293031 [XDebug];調試功能模組兒;extension=php_xdebug-2.2.5-5.3-vc9.dllzend_extension = "C:\Program Files (x86)\PHP\v5.6\ext\php_xdebug-2.5.4-5.6-vc11-nts.dll"xdebug.remote_handler=dbgpxdebug.idekey=PHPSTORM;開啟遠端偵錯xdebug.remote_enable = On;遠程主機xdebug.remote_host=localhost;主機連接埠xdebug.remote_port=9001;開啟自動跟蹤xdebug.auto_trace = On;開啟異常跟蹤xdebug.show_exception_trace = On;開啟遠端偵錯自動啟動xdebug.remote_autostart = On;收集變數xdebug.collect_vars = On;收集傳回值xdebug.collect_return = On;收集參數xdebug.collect_params = On;臨時跟蹤資訊輸出;xdebug.trace_output_dir="d:/PHP/php-5.3.28/temp";顯示局部變數xdebug.show_local_vars = Onxdebug.profiler_enable = On;xdebug.profiler_output_dir ="d:/PHP/php-5.3.28/temp"xdebug.trace_enable_trigger =On

主機連接埠    xdebug.remote_port=9001

編輯器key  xdebug.idekey=PHPSTORM

這兩個這麼配置是為了避免與fpm衝突和後面與phpstorm一同使用

phpstorm配置Xdebug連結:http://www.cnblogs.com/cxscode/p/7045944.html

 

  著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

 

Xdebug安裝對應版本與配置 - cxscode - 部落格園

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.