配置xdebug总是有错误。
我的程序目录结构:LAMP下分别安装apache,mysql,php.
apache为2.2版本,php为:PHP Version 5.2.17。
按道理只要我下载一个php_xdebug-2.1.2-5.2-vc6.dll(xdebug网站推荐我这个版本的),然后把它复制到php/ext,然后再php/php.ini中加入zend_extension_ts = c:\Program Files\LAMP\php\ext\php_xdebug-2.1.2-5.2-vc6.dll(无论加上冒号,还是反斜杠修改成正斜杠),然后想重新启动apache,可是就是重启不了。
xdebug推荐的安装方法:
1:Download php_xdebug-2.1.2-5.2-vc6.dll
2:Move the downloaded file to c:\Program Files\LAMP\php\ext
//第三句话是什么意思?
3:Open C:\Program Files\LAMP\etc\cfg\debugger.ini and put a ; in front of the line that says zend_extension_manager.dir.debugger= so that it says ;zend_extension_manager.dir.debugger=
4:Edit C:\Program Files\LAMP\php\php.ini and add at the begining of the file the line
5:zend_extension_ts = c:\Program Files\LAMP\php\ext\php_xdebug-2.1.2-5.2-vc6.dll
6:Restart the webserver