Netbeans + Xdebug + PHP无法正常工作 [英] Netbeans + Xdebug + php not working

查看:183
本文介绍了Netbeans + Xdebug + PHP无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的netbeans无法使用xdebug运行断点,我的配置看起来正确,所以我配置了第一次运行以停止调试,此后再也没有成功,有人遇到了这个问题?我的netbeans版本是6.8,php版本是2.5.2.

My netbeans does not work the breakpoints using xdebug, my configuration looks correct, so I configured the first time I ran up to stop debugging the first time since then has never worked, someone had this problem? The version of my netbeans is 6.8 and the version of php is 2.5.2.

我的php.ini:

zend_extension_ts = d:\wamp\bin\php\php5.2.5\ext\php_xdebug-2.0.2-5.2.5.dll
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=netbeans-xdebug
xdebug.profiler_enable=1

推荐答案

在我的情况下,此行需要包含在php.ini中:

In my case this line needed to be included in the php.ini:

xdebug.remote_autostart=on

这是XDebug的配置部分:

Here is the configuration section for XDebug:

[xdebug]
xdebug.remote_enable = on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"
xdebug.remote_autostart=on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"

这篇关于Netbeans + Xdebug + PHP无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆