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