无法配置 Notepad++ DBGP 插件.Xdebug 已经安装 [英] Unable to configure Notepad++ DBGP plugin. Xdebug already installed
问题描述
我已经在 PHP
上安装了 xdebug
但现在我无法使 notepad++
DBGp
插件工作.
I have installed xdebug
on PHP
but now I can't make the notepad++
DBGp
plugin work.
我在 Win7
上有最新的 wamp
版本,wwww
文件夹在分区上:d:\www
.
I have latest wamp
version on Win7
and the wwww
folder is on partition: d:\www
.
我编写了一个测试文件 test.php
:
I have coded a test file test.php
:
<?php
$test = "3";
echo $test;
?>
我尝试使用此链接在网络浏览器中打开它:
And I have tried opening it in web browser using this link :
http://localhost/test.php?XDEBUG_SESSION_START=test
但是 DBGp
无法连接.我尝试使用和不使用 IDE_Key
.
But the DBGp
won't connect. I tried with and without IDE_Key
.
我已经多次阅读文档,但无法找到/解决问题.希望有人知道原因.
I have gone through the documentation many times but was unable to find/solve the issue. Hopefully someone could know the reason.
以下是一些截图:
推荐答案
要解决此问题,需要更改 xdebug 设置和 dbgp 设置上的端口.
To fix this issue, the ports on both the xdebug settings and the dbgp settings needed to be changed.
从上面的评论中不清楚是否因为他们都试图使用相同的端口,端口被其他应用程序使用等.但也许康定斯基可以通过在他们看到这个答案时编辑这个答案来澄清这一点.
It is unclear from the above comments whether it was because they both attempted to use the same port, ports were used by other applications etc. but perhaps Kandinski can clarify this by editing this answer when they see it.
(发布给定的答案 [查看问题的评论] 以从未回答的队列中删除问题.用户在 3 年前被要求这样做,但尚未这样做.此答案的功劳仍然是他们的)
这篇关于无法配置 Notepad++ DBGP 插件.Xdebug 已经安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!