zend_extension="D:/AppServ/php5/php_xdebug-2.2.3-5.2-vc9.dll"
應該爲
zend_extension_ts="D:/AppServ/php5/php_xdebug-2.2.3-5.2-vc9.dll"
zend的擴展模塊的區別,摘錄如下
zend_extension (non ZTS, non debug build)
zend_extension_ts ( ZTS, non debug build)
zend_extension_debug (non ZTS, debug build)
zend_extension_debug_ts ( ZTS, debug build)
ZTS:ZEND Thread Safety
相應的版本一定要寫相應的名字,否則不能安裝。一般我們使用線程安全的版本。
另:
zend_extension加載php擴展時需用全路徑,而extension加載時可以用相對extension_dir的路徑。
apache啓動時經常會提示:php_mbstring.dll不能加載,只需要換一下php_mbstring.dll的位置即可。
確認xdebug安裝成功,通過phpinfo.php
啓動netbean,提示:等待連接 netbeans-xdebug
主要是端口配置問題,xdebug默認爲9000,可修改。
xdebug.remote_port=7777
netbeans相應的端口爲:
設置成功後,可調試。
感覺netbeans的界面比eclipse的清新,調試也很方便。
注:如果同時裝有zend_debugr和xdebug,會有影響。