phpstorm xdebug調試配置 chrome

來源:互聯網
上載者:User

標籤:span   xdebug   profile   trigger   log   推薦   tmp   .dll   修改   

這已經樓主第二次因為phpstorm的調試配置折騰了幾個小時,這次一定要記下來!!!

 

一:安裝 JetBrains IDE Support

 

 

二:安裝 Xdebug Helper

 

 

  三:(PHPStorm配置) 配置本機伺服器

 

 

 

四:PHP配置Xdebug

 1。在本地Apache網站下建立“phpinfo.php”檔案,內容為:

<?phpecho phpinfo();

2.訪問 127.0.0.1:8080/phpinfo.php 

3.開啟https://xdebug.org/wizard.php ,把上一步中複製的整個頁面內容黏貼到文字框中

4.上一步當中的第三步配置需注意下,開啟本地 apache2.x\bin\php.ini  修改[xdebug]節如下:

[xdebug]zend_extension ="E:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll";zend_extension ="E:\wamp64pro\bin\php\php5.6.25\ext\php_xdebug-2.5.0rc1-5.6-vc11-x86_64.dll" 這是推薦我的最新版dll,但測試後發現不能調試chrome  (ps: \與 / 沒有影響)xdebug.remote_enable = 1xdebug.profiler_enable = offxdebug.profiler_enable_trigger = offxdebug.profiler_output_name = cachegrind.out.%t.%pxdebug.profiler_output_dir ="E:/wamp64/tmp"xdebug.show_local_vars=0

 

 

5.檢查配置是否成功,訪問 1270.0.1:8080/phpinfo() ,搜尋是否有 Xdebug 的一個大節 注意,是大節!!

 

 

 

 

五:phpstorm配置PHP本地的伺服器

 

 

 

 

六:配置phpstorm xdebug

 

 

七:為具體的項目進行調試

 

 

 

 

 好了,回到文字編輯器,右鍵調試

 

 

 

 OVER!!

phpstorm xdebug調試配置 chrome

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.