php程序调试: xdebug的配置

怎样在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,说明安装配置成功


posted @ 2017-07-24 21:30  mfmdaoyou  阅读(169)  评论(0编辑  收藏  举报