EDIT: Starting with version 0.4.1, XDebug has been put back in Homestead. Compiling XDebug from the source is no longer required.
Your ~/.homestead should have a file named after.sh . This will provide you with a means by which you can execute your own commands after the Homestead provisioning tool has finished.
Copy and paste the following into your after.sh file:
#!/bin/sh
When finished, run vagrant destroy and vagrant up or run vagrant provision to verify that the shell command is executed correctly.
This version of XDebug is a direct clone of the Github Master branch. This branch is considered unstable. After the github Xdebug account adds a branch for 2.4 or 2.5, be sure to update your shell command to check this branch before running various configurations and commands.
In addition, I am adding Xdebug to the FPM configuration. I do not add it to the CLI configuration . You will probably see Xdebug only in the phpinfo() call, not in the php -i call.
In addition, I tested this in my own environment:
- Manor version 0.4
- Github clone laravel / homestead 3.0.1
- PHPStorm IDE
Everything works as expected. Let me know if this helps.
source share