I have been using vscode for a long time on my computer at work and it runs fine using php/xdebug. It’s Windows 10. Currently everything works.
I just recently got a new computer running Windows 11. I set everything up exactly the same way. My settings in vscode are synced, same extensions, same everything.
Running out of a Docker container
XDebug wizard says everything is installed fine.
I have disabled my firewall
netstat -aon shows the port 8000 listening
Whether I try to hit localhost:8000 with Postman/Telnet my debugger sits here and never accepts the connection. Maybe it’s something with Win 11? Anyone have any ideas?
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug on Docker",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-S",
"localhost:8000",
"-t",
"."
],
"port": 9003,
"pathMappings": {
"/var/www/html/": "${workspaceFolder}"
}
}
]
}