所有
我是一名相对较新的程序员,我想安装Xdebug来帮助我调试我的PHP工作。我在Windows XP机器上使用Wamp。
我将我的phpinfo()的内容上传到Xdebug网站,并作为定制安装说明的一部分,我得到了:
修改
C:\wamp\bin\apache\Apache2.2.11\bin\php.ini
并添加该行zend_extension = c:\wamp\bin\php\php5.3.0\ext\php_xdebug-2.1.2-5.3-vc6.dll
我之前从未打开过该文件,当我打开它时,我发现每个设置都放在一个带有一些注释的段落中 - 例如:
[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://php.net/tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg
; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://php.net/tidy.clean-output
tidy.clean_output = Off
我应该输入类似的东西:
[Xdebug]
; This is the line to be inserted per the set-up instructions (2012-01-05)
zend_extension = c:\wamp\bin\php\php5.3.0\ext\php_xdebug-2.1.2-5.3-vc6.dll
我认为服务器不会读取[...]
和;
,但我真的不确定它们是什么,我不想搞砸......
谢谢,
JDelage
答案 0 :(得分:3)
你只需要一行。章节[..]和;在PHP的解析器中被忽略。所以你需要的只是:
zend_extension = c:\wamp\bin\php\php5.3.0\ext\php_xdebug-2.1.2-5.3-vc6.dll
欢呼声。 德里克