4

我知道你在想什么,另一个 netbeans xdebug 帖子?

好吧,我已经尝试了我在其他帖子中看到的所有内容,但似乎没有任何效果。这是我的设置:

  • 操作系统:Ubuntu 9.10
  • PHP:5.2.1
  • 网豆:6.8

以下是我的 /etc/php5/apache2/php.ini

zend_extension=/usr/lib/php5/20060613/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"

我尝试过切换端口(到目前为止我已经尝试过 9001、9002 和 9034),使用 zend_extension_ts,在配置文件中添加额外的 xdebug 参数,但似乎没有任何效果:Netbeans 仍然说它正在等待连接(netbeans-xdebug )

如果我查看我的 phpinfo,我确实看到了关于 xdebug 的整个部分,并且参数是正确的。

任何帮助将不胜感激!

4

3 回答 3

4

我不知道发生了什么,但我将调试端口切换到 9000 并升级到 Netbeans 6.9,它现在可以工作了。

于 2010-06-29T21:09:32.180 回答
1

添加这些行解决了我的问题(通常)

xdebug.remote_enable = on

xdebug.profiler_enable = on

xdebug.profiler_enable_trigger = on

xdebug.profiler_output_name = cachegrind.out.%t.%p

xdebug.profiler_output_dir = "c:/wamp/tmp"
于 2011-06-01T10:58:49.953 回答
0

xdebug 似乎无法在“作为脚本运行”模式下运行 在您的本地网站上尝试

于 2010-07-02T13:30:35.623 回答