Is php 7 at mature stage already ?
How to Set UP? PHPStorm(latest) + Homestead PHP7+ Xdebug
Hope If Anyone Tried to Do this , They Can Share How they set this up... Atm im still gathering info and setting this up in my Machine... If I get to make it Load Successful and is working ill post My Result also here.
No luck Im Getting this tried all sort of stuffs
( ! ) Warning: Uncaught InvalidArgumentException: Given expression is not a regex. in /home/vagrant/Code/maxims/vendor/symfony/finder/Expression/Regex.php:77 Stack trace: #0 /home/vagrant/Code/maxims/vendor/symfony/finder/Expression/Expression.php(43): Symfony\Component\Finder\Expression\Regex::create('*.php') #1 /home/vagrant/Code/maxims/vendor/symfony/finder/Expression/Expression.php(34): Symfony\Component\Finder\Expression\Expression->__construct('*.php') #2 /home/vagrant/Code/maxims/vendor/symfony/finder/Iterator/FilenameFilterIterator.php(65): Symfony\Component\Finder\Expression\Expression::create('*.php') #3 /home/vagrant/Code/maxims/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php(36): Symfony\Component\Finder\Iterator\FilenameFilterIterator->toRegex('*.php') #4 /home/vagrant/Code/maxims/vendor/symfony/finder/Adapter/PhpAdapter.php(51): Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator->__construct(Object(Symfony\Component\Finder\Iterator\FileTypeFilterIterator), Array, Array) #5 /home/vagrant in /home/vagrant/Code/maxims/vendor/symfony/finder/Expression/Regex.php on line 77
Call Stack
# Time Memory Function Location
1 0.0112 363624 {main}( ) .../index.php:0
2 0.6283 3328432 Illuminate\Foundation\Http\Kernel->handle( ) .../index.php:53
3 0.6283 3328432 Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter( ) .../Kernel.php:87
4 0.6389 3350424 Illuminate\Foundation\Http\Kernel->bootstrap( ) .../Kernel.php:117
5 0.6389 3350424 Illuminate\Foundation\Application->bootstrapWith( ) .../Kernel.php:222
6 0.6876 3417104 Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap( ) .../Application.php:203
7 0.7107 3432712 Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles( ) .../LoadConfiguration.php:38
8 0.7107 3432712 Illuminate\Foundation\Bootstrap\LoadConfiguration->getConfigurationFiles( ) .../LoadConfiguration.php:55
9 0.8182 3670704 Symfony\Component\Finder\Finder->getIterator( ) .../LoadConfiguration.php:72
10 0.8182 3670704 Symfony\Component\Finder\Finder->searchInDirectory( ) .../Finder.php:660
11 0.8183 3672096 Symfony\Component\Finder\Adapter\PhpAdapter->searchInDirectory( ) .../Finder.php:753
12 0.8604 3787624 Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator->__construct( ) .../PhpAdapter.php:51
13 0.8605 3787624 Symfony\Component\Finder\Iterator\FilenameFilterIterator->toRegex( ) .../MultiplePcreFilterIterator.php:36
14 0.8824 3801272 Symfony\Component\Finder\Expression\Expression::create( ) .../FilenameFilterIterator.php:65
15 0.8824 3801328 Symfony\Component\Finder\Expression\Expression->__construct( ) .../Expression.php:34
( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in /home/vagrant/Code/maxims/vendor/symfony/finder/Expression/Expression.php on line 44
Call Stack
# Time Memory Function Location
1 0.0112 363624 {main}( ) .../index.php:0
2 0.6283 3328432 Illuminate\Foundation\Http\Kernel->handle( ) .../index.php:53
3 0.6283 3328432 Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter( ) .../Kernel.php:87
4 0.6389 3350424 Illuminate\Foundation\Http\Kernel->bootstrap( ) .../Kernel.php:117
5 0.6389 3350424 Illuminate\Foundation\Application->bootstrapWith( ) .../Kernel.php:222
6 0.6876 3417104 Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap( ) .../Application.php:203
7 0.7107 3432712 Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles( ) .../LoadConfiguration.php:38
8 0.7107 3432712 Illuminate\Foundation\Bootstrap\LoadConfiguration->getConfigurationFiles( ) .../LoadConfiguration.php:55
9 0.8182 3670704 Symfony\Component\Finder\Finder->getIterator( ) .../LoadConfiguration.php:72
10 0.8182 3670704 Symfony\Component\Finder\Finder->searchInDirectory( ) .../Finder.php:660
11 0.8183 3672096 Symfony\Component\Finder\Adapter\PhpAdapter->searchInDirectory( ) .../Finder.php:753
12 0.8604 3787624 Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator->__construct( ) .../PhpAdapter.php:51
13 0.8605 3787624 Symfony\Component\Finder\Iterator\FilenameFilterIterator->toRegex( ) .../MultiplePcreFilterIterator.php:36
14 0.8824 3801272 Symfony\Component\Finder\Expression\Expression::create( ) .../FilenameFilterIterator.php:65
15 0.8824 3801328 Symfony\Component\Finder\Expression\Expression->__construct( ) .../Expression.php:34
I can't even find xdebug on the homestead 4.0. It's in homestead 3.3. Does anyone have an update on how to get this working? Downgrading the box to 3.3 just gives me an error on homestead up: "default: php7.0-fpm: unrecognized service".
Same problem here no xdebug on Homestead 4.0
sudo pecl install xdebug
Does not work
For whow it may concern I achieve to install xdebug manually:
http://acacha.org/mediawiki/Homestead#Laravel_Homestead_4.0_amb_PHP_7
More info:
https://github.com/laravel/framework/issues/11594
Xdebug is by design removed from Laravel Homestead so it seems we have folks to install by hand.
I've written up a short tutorial on how I got this working:
http://gilbert.pellegrom.me/setting-up-xdebug-on-homestead-4-php-7/
Here's a script I use based off of the XDebug wizard:
#!/usr/bin/env bash
wget http://xdebug.org/files/xdebug-2.4.1.tgz
tar xvzf xdebug-2.4.1.tgz
cd xdebug-2.4.1
phpize
./configure
make
sudo cp modules/xdebug.so /usr/lib/php/20151012/
cd /etc/php/7.0/fpm/conf.d/
sudo service php7.0-fpm restart
php -v
sudo sed -i "|zend_extension=xdebug.so| { s|zend_extension=xdebug.so|zend_extension=/usr/lib/php/20151012/xdebug.so| }" /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.remote_port=9000' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.remote_mode=req' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.remote_host=192.168.11.11' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.remote_handler=dbgp' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.remote_connect_back=1' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.remote_enable=1' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.remote_autostart=0' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.max_nesting_level=400' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.idekey=PHPSTORM' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.default_enable=1' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.cli_color=1' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.scream=0' >> /etc/php/7.0/mods-available/xdebug.ini
echo 'xdebug.show_local_vars=1' >> /etc/php/7.0/mods-available/xdebug.ini
ln -s /etc/php/7.0/mods-available/xdebug.ini /etc/php/7.0/cli/conf.d/20-xdebug.ini
sudo service php7.0-fpm restart
php -v
Chukky Nze Thanks this worked for me just fine :) Just don't forged to call it with sudo ./xdebug.sh
Thanks @Chukky Nze. I had to do few commands manually but worked.
Please or to participate in this conversation.