php无法使用xdebug,安装了XDebug,但不显示在phpinfo()中,不起作用

博主在Ubuntu上遇到了NetBeans PHP调试器无法正常工作的难题。尽管已安装php5-xdebug,但在phpinfo()中无法查看到,且调试会话启动时提示没有可用的netbeans-xdebug连接。配置文件php.ini包含了xdebug的相关设置,如remote_enable设为on,remote_host设为localhost等。博主尝试自我解决但未成功,寻求帮助。
摘要由CSDN通过智能技术生成

我试图让我的NetBeans的php调试器在Ubuntu中工作。当我尝试启动调试会话时,它会尝试永久建立连接,但最终会给我一条错误消息,指出没有可用的netbeans-xdebug连接。我已经安装了php5-xdebug,但是当我尝试使用phpinfo()查看它时,它不显示。我的php / apache2 / php.ini有这些代码行:

zend_extension=/usr/lib/php5/20090626/xdebug.so

[debug]

; Remote settings

xdebug.remote_autostart=off

xdebug.remote_enable=on

xdebug.remote_handler=dbgp

xdebug.remote_mode=req

xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.idekey="netbeans-xdebug"

; General

xdebug.auto_trace=off

xdebug.collect_includes=on

xdebug.collect_params=off

xdebug.collect_return=off

xdebug.default_enable=on

xdebug.extended_info=1

xdebug.manual_url=http://www.php.net

xdebug.show_local_vars=0

xdebug.show_mem_delta=0

xdebug.max_nesting_level=100

;xdebug.idekey=

; Trace options

xdebug.trace_format=0

xdebug.trace_output_dir=/tmp

xdebug.trace_options=0

xdebug.trace_output_name=crc32

; Profiling

xdebug.profiler_append=0

xdebug.profiler_enable=0

xdebug.profiler_enable_trigger=0

xdebug.profiler_output_dir=/tmp

xdebug.profiler_output_name=crc32正如你所看到的,我试图自己解决它,但我无法实现它的工作。任何帮助将不胜感激...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值