PhpStorm Xdebug:端口 9000 忙,但设置在端口 63342
PhpStorm Xdebug: Port 9000 is busy, yet set at port 63342
我刚刚安装了 Xdebug,一启动 PhpStorm,我就看到这条消息:
这是由于其他一些程序 运行 端口 9000 导致的,我不想管它:
C:\Users\Rsluimers
λ netstat -ab
...
TCP 0.0.0.0:9000 LT1736:0 LISTENING
[aeagent.exe]
...
所以我在 PhpStorm 设置中设置了 Xdebug 调试器端口:
并在 php.ini 中:
...
[Xdebug]
zend_extension="C:\Program Files\PHP\ext\php_xdebug-2.5.5-7.1-vc14-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=63342
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\Program Files\PHP\tmp"
但是在完全重启后出现同样的错误。
Settings/Preferences | Build, Execution, Deployment | Debugger
是 错误的地方 到 PHP 的 set/get 调试器端口。
此设置页面与 PHP 调试无关:它用于 JavaScript 调试 integration/LiveEdit plugin/IDE 自己的 communications/built-in 网络服务器。
正确的地方是 Settings/Preferences | Languages & Frameworks | PHP | Debug
.
提示:如果您使用搜索框搜索“xdebug”,您会立即找到它(它确实有助于缩小可能的 locations/reduce 查找位置的范围)。
在我的例子中,它是“Build, Execution, Deployment | Debugger”中的一个设置:我在那里使用了相同的端口,不知道这个设置不适用于远程但内联调试器。
实际上,由于此设置,phpStorm 本身在启动时就锁定了用于远程调试的端口意图。
将上述设置更改为另一个端口后,远程调试立即生效。
希望这对某人有所帮助。
干杯。
我刚刚安装了 Xdebug,一启动 PhpStorm,我就看到这条消息:
这是由于其他一些程序 运行 端口 9000 导致的,我不想管它:
C:\Users\Rsluimers
λ netstat -ab
...
TCP 0.0.0.0:9000 LT1736:0 LISTENING
[aeagent.exe]
...
所以我在 PhpStorm 设置中设置了 Xdebug 调试器端口:
并在 php.ini 中:
...
[Xdebug]
zend_extension="C:\Program Files\PHP\ext\php_xdebug-2.5.5-7.1-vc14-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=63342
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\Program Files\PHP\tmp"
但是在完全重启后出现同样的错误。
Settings/Preferences | Build, Execution, Deployment | Debugger
是 错误的地方 到 PHP 的 set/get 调试器端口。
此设置页面与 PHP 调试无关:它用于 JavaScript 调试 integration/LiveEdit plugin/IDE 自己的 communications/built-in 网络服务器。
正确的地方是 Settings/Preferences | Languages & Frameworks | PHP | Debug
.
提示:如果您使用搜索框搜索“xdebug”,您会立即找到它(它确实有助于缩小可能的 locations/reduce 查找位置的范围)。
在我的例子中,它是“Build, Execution, Deployment | Debugger”中的一个设置:我在那里使用了相同的端口,不知道这个设置不适用于远程但内联调试器。
实际上,由于此设置,phpStorm 本身在启动时就锁定了用于远程调试的端口意图。
将上述设置更改为另一个端口后,远程调试立即生效。
希望这对某人有所帮助。
干杯。