XDebug的版本很多,開啟http://xdebug.org/index.php,發現有2.2、2.1以及相關的RC版,有點偏執和不想走彎路,所以沒有隨便download一個就安裝。把網站仔細看了一下,發現有句“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