How to add xdebug to vagrant vm if it was installed using puphpet?

48 Views Asked by At


I have a working VM based on a vagrant box.
It was created with help of a puphpet.
Now I need to add xdebug to the VM.
What is the best way to install xdebug?
Thank you very much!

2

There are 2 best solutions below

0
Woleks On

If you run php 7 on your server then you need to add

server:
install: '1'
packages: 
    - php-xdebug

to config.yml in your puphpet.

Then you need:

$: vagrant provision

and

$: vagrant up
0
Juan Treminio On

Xdebug is a first-class citizen in PuPHPet. Just add the following:

xdebug:
    install: 1
    settings:
        xdebug.default_enable: '1'
        xdebug.remote_autostart: '0'
        xdebug.remote_connect_back: '1'
        xdebug.remote_enable: '1'
        xdebug.remote_handler: dbgp
        xdebug.remote_port: '9000'

and vagrant provision to apply.