Laravel Valet enable xdebug with PHPStorm

Setting up Xdebug with Laravel Valet

 

Extra Note:

  1. Once you have upgraded new version of PHP, E.g PHP7.0 to PHP7.1. Remember install the xdebug package again.
  2. brew install php71-xdebug
  3. open file /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini
  4. Added the following line after the zend_extension="/usr/local/opt/php71-xdebug/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

Last step run valet install to restart everything.

Leave a Reply

Your email address will not be published. Required fields are marked *