Created
January 14, 2016 22:58
-
-
Save carltondickson/52d0d1c5da8067f2e6ad to your computer and use it in GitHub Desktop.
XDebug with rlerdorf/php7dev
This file contains 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
# Use http://xdebug.org/wizard.php to generate similar instructions to below for your setup based on your phpinfo() output | |
cd /tmp | |
wget http://xdebug.org/files/xdebug-2.4.0rc3.tgz | |
tar -xvzf xdebug-2.4.0rc3.tgz | |
cd xdebug-2.4.0RC3 | |
phpize | |
./configure | |
make | |
sudo cp modules/xdebug.so /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012 | |
sudo nano /etc/php7/php.ini | |
# Add following to /etc/php7/php.ini (/etc/php7/php-cli.ini if needed) | |
# zend_extension = /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so | |
# Turn on xdebug for CLI request (This is run on host machine that is running PHPSTORM) | |
php -dxdebug.remote_autostart=1 script.php | |
# TODO - Figure out how to remote debug this from within the guest CLI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment