史上最簡! PHP調試環境搭建-Zend Debugger裝配

來源:互聯網
上載者:User
史上最簡! PHP調試環境搭建-Zend Debugger安裝
原文地址:http://blog.csdn.net/nsrainbow/article/details/2218309



環境:PHP 5.2.5,Zend studio 9,Zend Debugger 5.2.10
需要下載的檔案
zend debugger: http://download.csdn.net/detail/nsrainbow/5958535
zend debugger toolbar (用於Chrome): http://download.csdn.net/detail/nsrainbow/5958559
zend studio 9 (下載那個 9.0.3): http://www.zendstudio.net/zend-studio-all-in-one-download/
安裝zend debugger
zend debugger下載後解壓開扔到 d:\zend\ZendDebugger.dll
然後添加這段到php.ini最後
[plain] view plaincopy
[Zend]
zend_extension_ts="d:/zend/ZendDebugger.dll"
zend_debugger.allow_hosts=127.0.0.1/32,127.0.0.1/24
zend_debugger.expose_remotely=allowed_hosts
重啟Apache
在你的網站檔案夾的根目錄下建立一個 a.php ,內容寫
開啟瀏覽器,訪問 a.php如果出現以下文字表示成功

安裝zend debugger toolbar 到 Chrome
開啟chrome 把下載好的 zend debugger toolbar 解壓出 zend-debugger-extension.crx 檔案拖入到 Chrome 的擴充程式裡面安裝
如果瀏覽器右上方出現這樣的一個綠色地球表示成功

zend studio的安裝過程不講
如何調試
在要調試的頁面點擊 綠地球,然後選 current page 會立即重新整理當前頁面,並且跳到zend studio裡面(首先你的zend studio必須是開啟著的狀態),如果是 next page 表示是下一個頁面調試,就是點擊了提交或者是超連結再調試
具體的調試介面的使用比較複雜,可以自己百度一下調試介面的具體功能,這邊不詳細講
  • 聯繫我們

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