- Create file phpdebug
chmod +x phpdebug
mv phpdebug /usr/bin/phpdebug
- Using:
phpdebug vagrant test.php
phpdebug yourServerName test.php
Last active
May 29, 2018 12:48
-
-
Save zahardev/d994e12a4ca22b1f7eadff4a659d76ed to your computer and use it in GitHub Desktop.
Debug CLI PHP on the Vagrant server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PHP_IDE_CONFIG="serverName=$1" | |
export XDEBUG_CONFIG="idekey=PHPSTORM remote_enable=1 remote_mode=req remote_port=9000 remote_host=10.0.2.2" | |
php $2 $3 $4 $5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment