Last modified: 2014-10-08 15:25:10 UTC
on vagrant 1.5.4 / windows 8.1 x64, a571f5d49841037ce7b1ddb54c33faac2c18163a vagrant debugging is broken. The connection only establishes when IDE is set to break on the first line and only when visiting http://localhost:8080/info.php -- IDE asks my local mapping with the web root. Otherwise, IDE never gets contacted. I compared xdebug settings - they are identical to what's before. I noticed that xdebug version is older now by default (i had to follow xdebug's site instructions on getting the latest - but that didn't help) Also, fcgi uses the same port 9000 as xdebug (they mention it on xdebug site), but changing fcgi to 9001 didn't help
This problem is caused by the switch to HHVM as the default runtime for the wiki. HHVM doesn't run xdebug. To get the old behavior back, the user needs to enable the `zend` role which switches the primary wiki back to running under mod_php. For HHVM there is another debugging tool/protocol [0] that we could enable. Chad has also proposed setting MW-Vagrant up to run another Apache endpoint serving the default wiki using mod_php in bug 67517. [0]: https://github.com/facebook/hhvm/blob/master/hphp/doc/debugger.devdocs
There is some discussion about sandbox thing in http://stackoverflow.com/questions/19454676/debugging-in-hhvm Ideally we should set it up so that both ports (hhvm & zend) could be debugged hitting the same host's IDE port
Two hhvm related changes (Iba5d6debd474b9cd7ec9ebde6512ac9b4fa03e40 and I3d60d787259d95b946fdda7c757cb8859e9d20fe) combined with the latest internal HHVM build (3.3-dev+20140728) now add support for debugging the live wiki using hhvm's built in debugger. This is not xdebug or an xdebug compatible protocol for IDE integration, but it is a fairly full featured gdb style debugger.
We really ought to contact the HHVM guru on this - gdb is a far cry from the simplicity of the modern day IDE debugging. But thanks for posting links, good to know it is still on the radar )
In the HHVM talk that Brett gave today he said that Facebook has an intern working on xdebug protocol support. "If it goes well you should see it in a few months."
The "fix" for this is to enable the "zend" role. Someday the debugger for HHVM may support the xdebug protocol but that is an upstream issue that we don't have the resources to fix.