I managed to get a connection between my local files and my remote files in a Vagrant box via Varying Vagrant Vagrants.
However, when a Breakpoint is hit, no data is returned. In fact, the xDebug logs appear to show that a Breakpoint has never been hit as far as it is concerned.
zend_extension=xdebug.so
[XDebug]
; Changed to "xdebug-atom"
xdebug.idekey = "xdebug-atom"
xdebug.remote_autostart = 1
; Changed to 1 from 0 looking at https://github.com/Varying-Vagrant-Vagrants/VVV/issues/684
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "192.168.50.1"
xdebug.remote_mode = "req"
xdebug.remote_port = 9000
; Found this in https://github.com/Varying-Vagrant-Vagrants/VVV/issues/684, not sure if actually necessary
xdebug.remote_connect_back = 1
I get a proper "Connected" message when I load a page with the Debug Panel up, but even though a Breakpoint gets hit nothing else is shown and all the buttons stay disabled.
If I check the xDebug Log after Connecting with the Page hanging on my Breakpoint, I see only the following:
Log opened at 2018-03-07 16:18:48
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to 192.168.50.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///srv/www/beta/htdocs/wp-admin/admin-ajax.php" language="PHP" xdebug:language_version="7.0.21-1~ubuntu14.04.1+deb.sury.org+1" protocol_version="1.0" appid="1215" idekey="xdebug-atom"><engine version="2.5.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright></init>
There's nothing about the Breakpoint being hit at all.
However, if I were to refresh the Page while it is hanging, I see the following (Including the previous log here for clarity)
Log opened at 2018-03-07 16:18:48
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to 192.168.50.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///srv/www/beta/htdocs/wp-admin/admin-ajax.php" language="PHP" xdebug:language_version="7.0.21-1~ubuntu14.04.1+deb.sury.org+1" protocol_version="1.0" appid="1215" idekey="xdebug-atom"><engine version="2.5.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="break" reason="ok"><xdebug:message filename="file:///srv/www/beta/htdocs/wp-content/plugins/psp-gantt/psp-gantt.php" lineno="309"></xdebug:message></response>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
Log closed at 2018-03-07 16:18:49
Log opened at 2018-03-07 16:20:49
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to 192.168.50.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///srv/www/beta/htdocs/wp-admin/admin-ajax.php" language="PHP" xdebug:language_version="7.0.21-1~ubuntu14.04.1+deb.sury.org+1" protocol_version="1.0" appid="9754" idekey="xdebug-atom"><engine version="2.5.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright></init>
Once I refresh that second time, it hits the Breakpoint, but then it starts a new Session as I refreshed. No data gets sent to Atom.
Here's the output in the Developer Tools Console in Atom if it helps (copying the text itself made it unreadable):
I figure my Issue is likely configuration related, but looking at the other open Issues I wasn't able to find anything to correct this :/
I managed to get a connection between my local files and my remote files in a Vagrant box via Varying Vagrant Vagrants.
However, when a Breakpoint is hit, no data is returned. In fact, the xDebug logs appear to show that a Breakpoint has never been hit as far as it is concerned.
Here's the entry in my config.cson:
Here's the relevant portions of xdebug.ini:
I get a proper "Connected" message when I load a page with the Debug Panel up, but even though a Breakpoint gets hit nothing else is shown and all the buttons stay disabled.
If I check the xDebug Log after Connecting with the Page hanging on my Breakpoint, I see only the following:
There's nothing about the Breakpoint being hit at all.
However, if I were to refresh the Page while it is hanging, I see the following (Including the previous log here for clarity)
Once I refresh that second time, it hits the Breakpoint, but then it starts a new Session as I refreshed. No data gets sent to Atom.
Here's the output in the Developer Tools Console in Atom if it helps (copying the text itself made it unreadable):
I figure my Issue is likely configuration related, but looking at the other open Issues I wasn't able to find anything to correct this :/