I want to mention something here about xdebug.remote_host
xdebug.remote_host="127.0.0.1"
Not valid. It may work in some cases, but quotes can also cause problems. Most people have no problem using quotes around IP addresses, but this sets a bad precedent. This makes people think that if you want to use the hostname or URL, you need to put it in quotation marks. This is not true, quotation marks will not work.
If you want to debug the use of the URL, you can do this by simply placing the URL after the following values:
xdebug.remote_host=subdomain.mydomain.com
I also want to mention that if you have a port number, do not add it. This does not work:
xdebug.remote_host=subdomain.mydomain.com:9000
This is what you want to do:
xdebug.remote_host=subdomain.mydomain.com xdebug.remote_port=9000
If you do this, I also warned you that remote_connect_back is disabled. Like this:
xdebug.remote_connect_back=0
or you can completely exclude it, for example:
If remote_connect_back is enabled, it will try to pull your IP address from the incoming connection and ignore the remote_host and port settings.
Xdebug uses plain old TCP to connect. This is not HTTP. This means that tools like Fiddler will not display packages or debugging information. If you need to debug and see if the server is going to your IDE, there are several ways to check it.
Wireshark lets you see TCP traffic. Also, if you are on Windows, Microsoft Message Analyzer can also control TCP.
But if all you are trying to do is to remove your IDE - a possible cause of problems with remote debugging, I suggest starting a local TCP server instead.
This is a great free java program to run a TCP server: http://sockettest.sourceforge.net/

In the IP Address section, simply enter 127.0.0.1 or leave it at 0.0.0.0. Then specify the port number, which is usually 9000 for xdebug by default.
Once the TCP server is started, open the remote web page using xdebug_break (); function call in it. This will tell xdebug on the remote server to start debugging on any server and port specified in your php.ini.
Keep an eye on the socket server and see if you have a connection. The first data sent should look something like this:
<init appid="APPID" idekey="IDE_KEY" session="DBGP_COOKIE" thread="THREAD_ID" parent="PARENT_APPID" language="LANGUAGE_NAME" protocol_version="1.0" fileuri="file://path/to/file">
If you have made it this far, remote debugging works! Just stop the server and configure your IDE to listen on this port!
If you are like most of us, your development machine is behind a NAT router. This means that everyone in your office has the same IP address. This is a problem because when xdebug contacts this IP address to start debugging, it gets to the router and not to your computer. The router can be configured to transfer certain port numbers to individual computers, but you may not want to do this, since this port will be open until you change the settings of your router.
Another option is to use SSH. There is a great example of how to do it here: http://stuporglue.org/setting-up-xdebug-with-netbeans-on-windows-with-a-remote-apache-server/#attachment_1305
My preferred option is to use Ngrok . Ngrok is a great tool for redirecting http, https and TCP traffic. To use the TCP forwarding feature, you need to register for a free account.
Once you have signed up for an account and added your API key to your computer, run this command on the computer on which your ID environment is installed:
ngrok tcp 9000
This will open the tcp (not http) tunnel from the ngrok server to any computer on which you ran the command. I use port 9000, you can change this port if your IDE is configured for another Xdebug port.
This is what you should see:

You will need to see that the TCP tunnel URL has been opened. In this example, this is:
0.tcp.ngrok.io:14904
For this session, the Xdebug parameter on your server should be as follows:
xdebug.remote_host=0.tcp.ngrok.io xdebug.remote_port=14904
The URL and port will change each time ngrok starts. If you want to have the same URL and port, you need to go to a paid account. Be sure to restart apache after making changes to your php.ini.