NetBeans的表演及QUOT;等待连接(NetBeans的-了XDebug)QUOT; [英] netbeans shows "Waiting For Connection (netbeans-xdebug)"

查看:218
本文介绍了NetBeans的表演及QUOT;等待连接(NetBeans的-了XDebug)QUOT;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要帮助配置XDebug的,从IDE的NetBeans调试项目。

这是我的组件的功能:

XAMPP 1.8.2

PHP:5.4.16

的NetBeans 7.3.1

阿帕奇:2.4.4(Win32的)

这是我的php.ini文件的最后部分:

  [XDebug的]
 的zend_extension =C:\\ XAMPP \\ PHP \\分机\\ php_xdebug-2.2.3-5.4-VC9-nts.dll
 ; xdebug.profiler_append = 0
 ; xdebug.profiler_enable = 1
 ; xdebug.profiler_enable_trigger = 0
 xdebug.profiler_output_dir =C:\\ XAMPP \\ tmp目录
 ; xdebug.profiler_output_name =。cachegrind.out%T-%的
 xdebug.remote_enable = 1
 xdebug.remote_handler =dbgp
 xdebug.remote_host =127.0.0.1
 ; xdebug.trace_output_dir =C:\\ XAMPP \\ tmp目录

当我运行phpinfo()函数,没有安装了XDebug,当我调试通过NetBeans项目,它说:等待连接(NetBeans的-Xdebug的)。

有人可以帮我配置它?
将是非常美联社preciated。

先谢谢了。


解决方案

你有没有纠正的问题?如果不是请试试这个。

1)的php.ini文件内容

 的zend_extension =C:\\ XAMPP \\ PHP \\分机\\ php_xdebug-2.2.3-5.4-vc9.dll
xdebug.remote_autostart =上
xdebug.remote_enable =上
xdebug.remote_enable = 1
xdebug.remote_handler =dbgp
; xdebug.remote_host =本地主机:81
xdebug.remote_host = 192.168.1.5
; xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.remote_mode = REQ
xdebug.idekey =于NetBeans XDebug的

xdebug.remote_host = 192.168.1.5 - 这是我的系统的IPv4地址,我改变了这一点,因为我不能调试本地主机 127.0.0.1

在NetBeans IDE中,打开工具 - >选项 - > PHP->调试。调试端口和会话ID的值应与港口和在php.ini指定idekey

现在保存p​​hp.ini文件,重新启动Apache现在尝试调试

由于约翰逊

need help to configure xdebug, for debugging projects from IDE netbeans.

These are the features of my components:

XAMPP 1.8.2

PHP: 5.4.16

netbeans: 7.3.1

Apache: 2.4.4 (Win32)

this is the final part of my php.ini file:

 [XDebug]
 zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-nts.dll"
 ;xdebug.profiler_append = 0
 ;xdebug.profiler_enable = 1
 ;xdebug.profiler_enable_trigger = 0
 xdebug.profiler_output_dir = "C:\xampp\tmp"
 ;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
 xdebug.remote_enable = 1
 xdebug.remote_handler = "dbgp"
 xdebug.remote_host = "127.0.0.1"
 ;xdebug.trace_output_dir = "C:\xampp\tmp"

when I run phpinfo(), there is no xdebug installed, and when I debug a project from netbeans, it says "Waiting For Connection (netbeans-xdebug)".

can someone help me to configure it? would be very appreciated.

thanks in advance.

解决方案

Have you rectified the issue ?, if not please try this.

1)php.ini file content

zend_extension = "c:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
;xdebug.remote_host="localhost:81"
xdebug.remote_host=192.168.1.5
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

xdebug.remote_host=192.168.1.5 - This is the IPv4 address of my system, I changed to this because I couldn't debug with localhost and 127.0.0.1.

in NetBeans IDE, open Tools-> Options->PHP->Debugging. The values of debugger port and Session Id should match with the port and idekey specified in php.ini

Now save php.ini, restart Apache and now try for debugging

Thanks Johnson

这篇关于NetBeans的表演及QUOT;等待连接(NetBeans的-了XDebug)QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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