Xdebug3 相對於Xdebug2改動挺大的。在php.ini 裏下面的設置就夠了,不需要多餘的。默認調試端口 9003
[XDebug]
zend_extension = "php_xdebug.dll"
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.idekey = VSCODE
https://community.localwp.com/t/local-xdebug-vscode-mostly-working-in-2022-but-cannot-connect-to-local-site-through-port-9000-9003/33290