我刚刚安装了 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"
但在完全重启后出现相同的错误。
最佳答案
设置/首选项 |构建、执行、部署 | Debugger
是设置/获取 PHP 调试器端口的错误位置。
此设置页面与 PHP 调试无关:它用于 JavaScript 调试集成/LiveEdit 插件/IDE 自己的通信/内置 Web 服务器。
正确的地方是 Settings/Preferences |语言与框架 | PHP |调试
。
提示:如果您使用搜索框并搜索“xdebug”,您会立即找到它(它确实有助于缩小可能的位置/减少查找内容的位置)。
关于windows - PhpStorm Xdebug : Port 9000 is busy, 还设置在端口 63342,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48151367/