Skip to content

Instantly share code, notes, and snippets.

@clarencetw
Created August 18, 2019 14:38
Show Gist options
  • Save clarencetw/71fdc07005f4baf1fb629606c3cc7877 to your computer and use it in GitHub Desktop.
Save clarencetw/71fdc07005f4baf1fb629606c3cc7877 to your computer and use it in GitHub Desktop.
phpstorm-use-xdebug-to-laravel
brew install php
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
pecl install xdebug-beta
[opcache]
zend_extension=/usr/local/opt/php/lib/php/20180731/opcache.so
xdebug.idekey = "PHPSTORM"
xdebug.default_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler="dbgp"
vim /usr/local/etc/php/7.3/conf.d/ext-opcache.ini
Warning: mkdir(): File exists in System.php on line 294
PHP Warning: mkdir(): File exists in /usr/local/Cellar/php/7.3.8/share/php/pear/System.php on line 294
Warning: mkdir(): File exists in /usr/local/Cellar/php/7.3.8/share/php/pear/System.php on line 294
ERROR: failed to mkdir /usr/local/Cellar/php/7.3.8/pecl/20180731
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment