淺談php+phpStorm+xdebug配置方法,phpstormxdebug_PHP教程

來源:互聯網
上載者:User

淺談php+phpStorm+xdebug配置方法,phpstormxdebug


1.下載xdebug檔案

http://xdebug.org/wizard.php

將phpinfo()的原始碼複製到文字框中,xdebug會提示如何配置和下載哪個版本的xdebug。

全部下載地址:

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

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

zend_extension="php_xdebug-2.3.3-5.6-vc11.dll"xdebug.remote_enable = Onxdebug.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

以上內容就是本文給大家介紹的php+phpStorm+xdebug配置方法,希望大家喜歡。

http://www.bkjia.com/PHPjc/1057093.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1057093.htmlTechArticle淺談php+phpStorm+xdebug配置方法,phpstormxdebug 1.下載xdebug檔案 http://xdebug.org/wizard.php 將phpinfo()的原始碼複製到文字框中,xdebug會提示如何配置和...

  • 聯繫我們

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