码迷,mamicode.com
首页 > Web开发 > 详细

php程序调试: xdebug的配置

时间:2017-07-24 22:36:00      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:install   版本号   font   orm   change   and   内容   str   content   

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


php程序调试: xdebug的配置

标签:install   版本号   font   orm   change   and   内容   str   content   

原文地址:http://www.cnblogs.com/mfmdaoyou/p/7231180.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!