PHP VSCode Xdebug错误::侦听EADDRINUSE:地址已在使用中:::9111
我确信在我运行debug(按PHP VSCode Xdebug错误::侦听EADDRINUSE:地址已在使用中:::9111,php,visual-studio-code,xdebug,Php,Visual Studio Code,Xdebug,我确信在我运行debug(按F5)之前没有使用该端口。我已经终止了使用9111的进程,但它也无法运行,并提示我相同的错误。我也尝试过改变端口,得到了同样的错误 lanch.JSON { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "con
F5
)之前没有使用该端口。我已经终止了使用9111的进程,但它也无法运行,并提示我相同的错误。我也尝试过改变端口,得到了同样的错误
lanch.JSON
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
//"hostname": "192.168.0.104",
//"localSourceRoot": "${workspaceRoot}",
"port": 9111
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
//"program": "${file}",
//"cwd": "${fileDirname}",
"port": 9111
}
]
}
PHP.ini
xdebug.remote_host = 127.0.0.1
xdebug.remote_port=9111
xdebug.client_port = 9111
xdebug.remote_enable=true
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_autostart = On
xdebug.auto_trace = Off
xdebug.show_exception_trace = Off
xdebug.var_display_max_children=128
xdebug.var_display_max_data=512
xdebug.var_display_max_depth=15
按F5
后,我的VSCode显示此信息。浏览器无法打开
然后单击xdebug的基本列表:
单击listen Xdebug时,会显示一个错误:
那么,您想在浏览器中打开什么URL?显示您尝试调试的页面的地址栏/浏览器屏幕截图。