Continuing the discussion from Netbeans php xdebug cannot debug:
I ran into the same problem the other day with Apache NetBeans 11.0. As it turned out all I had to do was add a line to the php.ini file.
Which php.ini file to modify? Run the “echo phpinfo()” and use that php.ini from the printout.
Also check the value for “xdebug.remote_enable=” in the phpinfo() printout.
In the php.ini file either uncomment or add a line like “xdebug.remote_enable=On”
Restart your server and you should be good to go, if that was the problem.