I am trying to debug a wordpress website on my local machine in built in debug mode. When I press F5 it launches IE to the URL http://localhost:17672/?XDEBUG_SESSION_START=1 but within a second the URL is redirected to http://localhost/?XDEBUG_SESSION_START=1 and I see the "Test Page for Apache Installation" rather than the home page. Same thing happens if I use Firefox.

I don't have this problem when I am debugging a non-wordpress php website that I built myself.

juanc says:

Seems you have Apache running on your system. Have you considered using it instead of the built-in one?

Otherwise, seems like a configuration in wordpress to redirect you.

ubik says:

I have same problem. But you can fix this setting VS.PHP to work on specific port (4444 for example) and update "siteurl" to "http://127.0.0.1:4444/" in wp_options table