Last modified: 2014-10-08 15:25:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69719, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67719 - xdebug is broken on vagrant
xdebug is broken on vagrant
Status: RESOLVED WONTFIX
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal critical
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-09 01:47 UTC by Yuri Astrakhan
Modified: 2014-10-08 15:25 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yuri Astrakhan 2014-07-09 01:47:57 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
Comment 1 Bryan Davis 2014-07-09 04:13:01 UTC
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
Comment 2 Yuri Astrakhan 2014-07-09 04:55:45 UTC
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
Comment 3 Bryan Davis 2014-07-28 20:50:10 UTC
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.
Comment 4 Yuri Astrakhan 2014-07-28 21:30:29 UTC
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 )
Comment 5 Bryan Davis 2014-07-29 19:39:11 UTC
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."
Comment 6 Bryan Davis 2014-08-19 23:03:36 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links