Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As mentioned in <a href="http://www.xdebug.org/docs/all_settings" rel="nofollow noreferrer">http://www.xdebug.org/docs/all_settings</a>, you can set option</p> <pre><code>xdebug.remote_connect_back = 1 </code></pre> <p>So, xdebug will connect back to the host, which requested for web-page, and will ignore option "remote_host".</p> <p>This solution has one problem: If you enable xdebug for any request, and user, opening web-page doesn't have running xdebug client (waiting for connection from server), and has non-closed <code>9000</code> port, the server <strong>would wait for a long time</strong> (trying to connect to client's xdebug session), before it can finally load page. I had this problem with windows 7 machines, because it's firewall doesn't actually closes port, and connecting software can't understand, that nobody is listening port.</p> <p>If this doesn't work:</p> <p>I had the same situation, then I was need for VirtualBox VM with configuration, that should work on any machine with any IP. So, I made it this way:</p> <ol> <li>I've created virtual network interface in VirtualBox (I don't know, are there any options for this in vagrant, but it should be), and set it local address to <code>192.168.100.1</code>, so, my REAL machine have two addresses: <code>eth0:192.168.1.2</code>, and <code>vboxnet0:192.168.100.1</code>.</li> <li>I've configured virtual machine with following values: <code>IP=192.168.100.100</code>, Default gateway = <code>192.168.100.1</code></li> <li>Configure my XDebug to <code>remote_ip=192.168.100.1</code></li> </ol> <p>And now, I have 3 copies of this machine (my copy, and 2 copies used by my co-workers), and it works fine!</p> <p>So, solution is to set your IP address to some "constant one", just virtually.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload