laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.66k stars 11.04k forks source link

Xdebug not installed at Laravel Homestead 4.0 #11594

Closed acacha closed 8 years ago

acacha commented 8 years ago

As far as I known Xdebug is installed at previous versions of Laravel Homestead. I don't know if this is a bug or anything else because I haven't found any docs about this.

For whom it may concern I achieve to install manually with this commands:

http://acacha.org/mediawiki/Homestead#Laravel_Homestead_4.0_amb_PHP_7

I've used http://xdebug.org/wizard.php with some litle changes

GrahamCampbell commented 8 years ago

Thanks, but this is by design. xdebug was removed from the default box now.

acacha commented 8 years ago

@GrahamCampbell Ok thanks for the info!

jonagoldman commented 8 years ago

I just can't get it to work. I installed and configured Xdebug 2.4.0rc3 following the docs. I see the extension in phpinfo() and PhpStorm recognizes the remote debugger, but I can't get it to listen and stop on breakpoints.

The problem is that Xdebug seems to be installed as a PHP extension, instead of a Zend Extension, wich is strange as I configured zend_extension="/usr/.../xdebug.so".

Any ideas?

jjeaton commented 8 years ago

@GrahamCampbell are you able to share the reasoning behind removing xdebug by default? Solely for our curiosity. :) Is there meant to be a replacement developers should be using?

GrahamCampbell commented 8 years ago

I think it's because it's not stable yet. For example, my app segfauls on php 7 with code coverage enabled when running phpunit.

jjeaton commented 8 years ago

@GrahamCampbell Thanks for the info! So there is a chance that future iterations will include xdebug once it's stable with PHP7?

GrahamCampbell commented 8 years ago

It's not really up to me. It's up to Taylor to decide if and when he wants to put it back in.

jonagoldman commented 8 years ago

Is it possible to put a short step by step list on configuring Xdebug with Homestead 4?

jjeaton commented 8 years ago

FWIW, I was able to get it running following these instructions: http://gilbert.pellegrom.me/setting-up-xdebug-on-homestead-4-php-7/ Although that feels pretty fragile, as it won't stick around if I need to vagrant destroy for any reason.

jonagoldman commented 8 years ago

:+1: @jjeaton