Last modified: 2014-11-17 21:36:23 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 T59676, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57676 - Support CLI debugging
Support CLI debugging
Status: NEW
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-27 20:00 UTC by Tisza Gergő
Modified: 2014-11-17 21:36 UTC (History)
3 users (show)

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


Attachments

Description Tisza Gergő 2013-11-27 20:00:41 UTC
There is no way to debug CLI scripts with XDebug without documentation digging, as far as I can see. I usually add shell functions called xdebug_on and xdebug_off which export/unset XDEBUG_CONFIG='remote_host=10.11.12.1' (which then tells XDEBUG to use the standard vagrant host IP). What do you think of adding that to the vagrant user's bashrc?
Comment 1 Ori Livneh 2014-04-16 15:47:51 UTC
Sure. just add env::var { 'XDEBUG_CONFIG': value => 'remote_host=10.11.12.1' } to the XDebug role. Submit a patch & I'll review.
Comment 2 Tisza Gergő 2014-04-23 20:59:55 UTC
Apparently there is no XDebug role anymore. I don't want to enable the debugger all the time (probably even enabling the debugger all the time the remote_debug role is enabled would be a bad idea).

How about adding a scripts.d or profile.d directory to the vagrant user, which works like settings.d etc (anything in there is automatically executed when the user logs in, and puppet can drop its own scripts there, and not worry about overwriting a custom profile/bashrc file)? I could think of a few features besides this one where that would be useful.
Comment 3 Bryan Davis 2014-08-20 00:10:36 UTC
(In reply to Tisza Gergő from comment #2)
> How about adding a scripts.d or profile.d directory to the vagrant user,
> which works like settings.d etc (anything in there is automatically executed
> when the user logs in, and puppet can drop its own scripts there, and not
> worry about overwriting a custom profile/bashrc file)? I could think of a
> few features besides this one where that would be useful.

The env:var and env::profile_script resources do just this. They add scripts in /etc/profile.d to be read during login shell initialization.
Comment 4 Bryan Davis 2014-11-17 21:36:23 UTC
Bulk unassigning bugs from Ori.

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


Navigation
Links