php程式調試: xdebug的配置

來源:互聯網
上載者:User

標籤:style   http   java   io   art   for   

如何在phpeclipse中像調試Java程式一樣調試php呢?

XDebug的版本很多,開啟http://xdebug.org/index.php,把網站仔細看一下,你會發現有句“If you don‘t know which one you need, please refer to the custom installation instructions.”,非常好,開啟這個頁面,按照要求將phpinfo()的內容copy & paste到form裡面,然後按一下“Analyse my phpinfo() output”,頁面就會抽取你提交的內容中的指定部分,形成一個類似下面的Instruction:
1. Download php_xdebug-2.2.0-5.3-vc9.dll
2. Move the downloaded file to D:\xampp\php\ext
3. Update D:\ampp\php\php.ini and change the line
zend_extension = D:\xampp\php\ext\php_xdebug-2.2.0-5.3-vc9.dll
4. Restart the webserver

寫一個test.php,內容為<?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.