Xdebug fails to connect to VS Code (or any other IDE) using PHP “7.4.30” in WIndows. After some troubleshooting, I found out that even after selecting PHP 7.4.30, LocalWP installs 7.4.3 (can be seen in the phpinfo page).
The xdebug installation wizard page shows this message when analyzing phpinfo:
“PHP version 7.4.3 is not supported on Windows due to missing exported symbols in zlib, upgrade to at least 7.4.20.”
I tried PHP 7.8 and that works, but I need 7.4.x for some projects.
How can I install the correct version of PHP?