PHP:Xdebug配置

在配置Xdebug時,以前經歷了無數次失敗,終於配置成功!php

如下是配置失敗的緣由:html

一、下載時,選用Xdebug的版本不正確;web

二、配置時,Xdebug文件名或文件的路徑不正確;ui

在參考 http://www.cnblogs.com/qiantuwuliang/archive/2011/01/23/1942382.html文章後,終於配置成功,具體步驟以下:spa

一、將本機的Php安裝信息用Phpinfo()輸出;debug

二、上述輸出信息複製出來,粘貼到 Xdebug phpinfo信息分析地址,並點擊提交按鈕,等待分析結果;code

三、如下是我機器的提交後的輸出信息:server

Summary

  • Xdebug installed: no
  • Server API: Apache 2.0 Handler
  • Windows: yes - Compiler: MS VC11 - Architecture: x86
  • Zend Server: no
  • PHP Version: 5.6.15
  • Zend API nr: 220131226
  • PHP API nr: 20131226
  • Debug Build: no
  • Thread Safe Build: yes
  • Configuration File Path: C:\Windows
  • Configuration File: C:\xampp\php\php.ini
  • Extensions directory: C:\xampp\php\ext

Instructions

  1. Download php_xdebug-2.4.0rc3-5.6-vc11.dll
  2. Move the downloaded file to C:\xampp\php\ext
  3. Edit C:\xampp\php\php.ini and add the line
    zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0rc3-5.6-vc11.dll
  4. Restart the webserver

按照上述InStructions的步驟設置,Xdebug安裝成功!htm

相關文章
相關標籤/搜索