1
我是一個相對新手程序員,我想安裝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