Eclipse For PHP Debug 設定記錄 (備忘)

來源:互聯網
上載者:User

網上人寫的太亂了,看不懂,自己摸索出來了,寫出來備忘

 

1.  Eclipse PDT: (eclipse-php-helios-win32)

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-php-helios-win32.zip

 

2. Zend Debug Tool(ZendDebugger-5.2.15-cygwin_nt-i386)

http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.15-cygwin_nt-i386.zip"

複製出其中的檔案,將dummy.php複製到wwwroot路徑下面


 

3修改Php.ini檔案

增加如下節點:

 [Zend]

 zend_extension_ts=ZendDebugger.dll (ZendDebugger.dll檔案路徑 這裡設定於php.ini同目錄)

 zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.101/24 (伺服器位址)

 zend_debugger.expose_remotely=always

 

4. 重啟Apache伺服器,查看是否有如下的內容:


 

 

說明配置成功!

 

5.配置Eclipse Debug as 設定:

 


 

6.編寫測試代碼,並進行斷點設定 F11,F8,F6,F5


 

常見的快速鍵設定;


 

  

聯繫我們

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