Skip to content

Instantly share code, notes, and snippets.

@carltondickson
Created January 14, 2016 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carltondickson/52d0d1c5da8067f2e6ad to your computer and use it in GitHub Desktop.
Save carltondickson/52d0d1c5da8067f2e6ad to your computer and use it in GitHub Desktop.
XDebug with rlerdorf/php7dev
# 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