如何在phpeclipse中像调试Java程序一样调试php呢?
XDebug的版本很多,打开http://xdebug.org/index.php,把网站仔细看一下,你会发现有句“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
写一个test.php,内容为<?php phpinfo(); ?>,如果输出的内容中有看到xdebug,说明安装配置成功