Homestead: Xdebug not enabled

Created on 2 Dec 2019  路  12Comments  路  Source: laravel/homestead

Versions

  • Vagrant: 2.2.6
  • Provider: Virtualbox 6.0.14
  • Homestead: 10.0.1
  • Box: 9.0.1

Host operating system

Windows 10 Pro (18363.476)

Homestead.yaml

ip: 192.168.10.10
memory: 2048
cpus: 4
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
    - ~/.ssh/id_rsa
folders:
    -
        map: 'C:\projects\portal'
        to: /home/vagrant/code
sites:
    -
        map: portal.com
        to: /home/vagrant/code/public
databases:
    - pdw
name: portal
hostname: portal

Vagrant destroy & up output

Gist of output

Expected behavior

Xdebug is enabled and running by default.

Actual behavior

Xdebug is not enabled and not running for any PHP version. It seems like Xdebug is not installed. In commit https://github.com/laravel/settler/commit/eb8bbf0dfb51cdf022f9f5b9678631caba7894c6 I noticed that php-xdebug has been removed. Could this be by accident?

Steps to reproduce

  1. Vagrant up
  2. Vagrant ssh
  3. php-fpm7.4 -v (no xdebug)
  4. cd /etc/php/7.4/fpm/conf.d (20-xdebug.ini does not exist)
  5. sudo phpenmod xdebug (creates config file)
  6. vagrant reload (xdebug still not running)

References

None

All 12 comments

looking at that commit, it looks like the memcached, pear, imagick, and redis extensions were also removed from the 7.3 install.

looking at that commit, it looks like the memcached, pear, imagick, and redis extensions were also removed.

Well crap. I apparently didn't double-check the extensions/packages when I updated all the versions. Will be later tonight before I can kick off another round of box building.

No problem! Thanks for the effort :)

Verified resolved, here's what's in phpinfo() via 7.4 FPM:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies
    with Xdebug v2.8.0, Copyright (c) 2002-2019, by Derick Rethans

Box https://github.com/laravel/settler/releases/tag/v9.1.0 has been released for Virtualbox. Other providers are being uploaded as soon as they're built.

I just finished updating to 9.1.0, however, Xdebug is not enabled.

PHP 7.4.0 (cli) (built: Nov 28 2019 07:27:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies

I just finished updating to 9.1.0, however, Xdebug is not enabled.

PHP 7.4.0 (cli) (built: Nov 28 2019 07:27:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies

That's because Xdebug is not enabled for the CLI, only for FPM

I just finished updating to 9.1.0, however, Xdebug is not enabled.

PHP 7.4.0 (cli) (built: Nov 28 2019 07:27:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies

You can enable it in the CLI by using the alias xphp :
xphp -v
should display xdebug correctly

I have upgraded homestead to v10.8.0 and xdebug is not available on php7.4 FPM. It is on php7.3

Any hint?

Vagrant: 2.2.7
Provider: Virtualbox 6.0.20
Homestead: 10.8.0
Box: 9.5.1

@ventoh vagrant destroy && vagrant up

I was sure i issued vagrant destroy command but i think i haven't confirmed the destroy. Re-issued again and it worked.. Sorry for this trivial request.

No worries! glad you got it sorted out

Was this page helpful?
0 / 5 - 0 ratings

Related issues

teleclimber picture teleclimber  路  3Comments

svpernova09 picture svpernova09  路  5Comments

Quix0r picture Quix0r  路  4Comments

steveheinsch picture steveheinsch  路  3Comments

it-can picture it-can  路  3Comments