Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
等待连接(netbeansxdebug)-php-XAMPP_Php_Netbeans_Xampp_Xdebug - Fatal编程技术网

等待连接(netbeansxdebug)-php-XAMPP

等待连接(netbeansxdebug)-php-XAMPP,php,netbeans,xampp,xdebug,Php,Netbeans,Xampp,Xdebug,我尝试使用netbeans调试php程序。而且xdebug不工作。我试过的是 转到以分析我的phpinfo()。 我下载了phpxdebug-2.4.0rc2-5.6-vc11.dll并将其放入C:\xampp\php\ext 我还修改了php.ini(我确信它是正确的文件),如 我还检查了端口9000。当netbeans不调试时,我从cmd输入netstat-ano | find“9000”。没什么。当我开始调试throuh netbeans时,如下图所示 所以我认为netbeans可以通过

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

我还检查了端口9000。当netbeans不调试时,我从cmd输入netstat-ano | find“9000”。没什么。当我开始调试throuh netbeans时,如下图所示

所以我认为netbeans可以通过端口9000与xDebug交互

问题可能是ip地址。因此,我尝试使用我的ipv4地址(cmd ipconfig)而不是127.0.0.1,不起作用。还有“localhost”,两者都不起作用

我意识到我正在使用vpn在大学工作,可能问题来自firegate或防病毒软件。但我不能关闭任何一个,因为我不是系统管理员

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


我为此花了整整一天的时间。

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

[XDebug]

zend_extension=“C:\xampp\php\ext\php\uxdebug-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服务器,以确保没有其他东西占用该端口。一切都很好。所以这可能是问题所在。希望有用。

你能更具体地说明到底哪里出了问题吗?当您开始调试时,调试程序是否在Netbeans中工作?xdebug会话是否存在于
phpinfo()
输出中?如果使用
?XDEBUG\u SESSION\u START=mysession
参数请求调试URL,会发生什么情况?Hi XDEBUG不工作。当我设置一些断点并单击debug时,它只显示“正在等待连接(netbeans xDebug)”。另外,phpinfo()中没有xDebug。对我来说,我不知道有三个位置必须指定port=9000,不匹配导致“等待连接(netbeans xDebug)”:
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