我尝试将 xdebug 与 NetBeans 结合使用来调试 PHP。我开始调试,NetBeans 一直等待与 xdebug 的连接。我的 Mac 上安装了带有最新 MAMP 包的 NetBeans 6.8(最新版本)。
我的 php.ini 看起来像这样:
[xdebug]
;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
最佳答案
最后,我不得不像这样添加 idekey 值:
xdebug.idekey="netbeans-xdebug"
现在可以了:-)
关于php - 为什么 xdebug 不与 NetBeans 建立连接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1946643/