windows - PhpStorm Xdebug : Port 9000 is busy, 还设置在端口 63342

标签 windows phpstorm port xdebug

我刚刚安装了 Xdebug,一启动 PhpStorm,我就看到这条消息:

enter image description here

这是由于其他一些运行端口 9000 的程序,我不想管它:

C:\Users\Rsluimers
λ netstat -ab
...
TCP    0.0.0.0:9000           LT1736:0               LISTENING
[aeagent.exe]                                                  
...

所以我在 PhpStorm 设置中设置了 Xdebug 调试器端口:

enter image description here

在 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"

但在完全重启后出现相同的错误。

最佳答案

设置/首选项 |构建、执行、部署 | Debugger 是设置/获取 PHP 调试器端口的错误位置

此设置页面与 PHP 调试无关:它用于 JavaScript 调试集成/LiveEdit 插件/IDE 自己的通信/内置 Web 服务器。


正确的地方是 Settings/Preferences |语言与框架 | PHP |调试

提示:如果您使用搜索框并搜索“xdebug”,您会立即找到它(它确实有助于缩小可能的位置/减少查找内容的位置)。

enter image description here

关于windows - PhpStorm Xdebug : Port 9000 is busy, 还设置在端口 63342,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48151367/

相关文章:

java - Phpstorm 8.0.1 内存不足

codeigniter - PhpStorm 无法识别类中的 CodeIgniter v3.0 数据库方法

php - 使用 Codeception 和 Gherkin 时 PhpStorm 中未定义的步骤引用

linux - 获取服务器正在监听的端口号?

java - JApplet 可以在一个端口上监听并在另一个端口上写入吗?

c++ - LVN_ITEMCHANGING - 区分用户输入

处理 eps/pdf 的 C++ 库

mysql - 删除两个 mysql 实例之一 - Linux

windows - 在 Silverlight 中,如何在按下按钮时显示新 Pane ?

c - 如何从窗口获取 OpenGL 上下文?