等待连接(netbeans-xDebug)-php-XAMPP

Waiting for connection(netbeans-xDebug)-php-XAMPP

我尝试使用netbeans调试php程序。而且xdebug无法正常工作。我试过的是
转到http://xdebug.org/wizard.php分析我的phpinfo()。
我下载了php_xdebug-2.4.0rc2-5.6-vc11.dll并将其放入C:\\\\ xampp \\\\ php \\\\ ext
我还修改了php.ini(我确定它是正确的文件),例如

1
2
3
4
5
6
7
8
9
10
11
12
zend_extension ="C:\\xampp\\php\\ext\\php_xdebug-2.4.0rc2-5.6-vc11.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.remote_port = 9000
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1

我还检查了端口9000。当netbeans无法调试时,我输入netstat -ano |。在cmd中找到" 9000"。它什么都没有。当我开始通过netbeans调试时,如下图所示
enter

我意识到我正在使用vpn在大学里工作,也许问题出在Firegate或防病毒软件上。但是我不能关闭其中的任何一个,因为我不是系统管理员。

如何处理这种情况?有帮助吗?

我为此花了一整天。


问题已解决。我尝试了所有,但没有任何效果。最终,我取消了XAMPP的安装,并按照http://xdebug.org/wizard.php中的步骤进行操作。我在php.ini文件中最后一个xDebug部分是(仅未注释的内容)

[XDebug]

zend_extension =" C:\\\\ xampp \\\\ php \\\\ ext \\\\ php_xdebug-2.4.0rc2-5.6-vc11.dll"

xdebug.remote_enable = 1

xdebug.remote_handler =" dbgp"

xdebug.remote_host =" 127.0.0.1"

xdebug.remote_port = 9000

我认为我的问题是由apach服务器中的配置引起的。因为我第一次想从XAMPP控制面板启动Apach服务器时,它说由于端口阻塞而出错。因此,我更改了端口号,而不是使用默认端口。重新安装XAMPP控制面板后,我重新启动了计算机并立即启动了Apach服务器,以确保没有其他端口占用该端口。所有的作品都很棒。因此可能是问题所在。希望有用。