Guide to setting up XDebug with PHPStorm.
Versions:
This guide is only for PHP7, Mac El Capitan, PHPStorm 2016.3
brew install php70
Install nginx
Manual - http://learnaholic.me/2012/10/10/10/installing-nginx-in-mac-os-x-mountain-lion/
Config - https://gist.github.com/kmaxat/c07795ab88677efb843686d075fafa9e
brew install php70-xdebug
Create the info.php file in the laravel public folder:
info.php: <?php phpinfo();
<?php phpinfo();
Edit file /usr/local/etc/php7.0/conf.d/ext-xdebug.ini
/usr/local/etc/php7.0/conf.d/ext-xdebug.ini
zend_extension="/usr/local/opt/php70-xdebug/xdebug.so" xdebug.remote_enable = 1 xdebug.remote_connect_back=1 xdebug.remote_port = 9001 xdebug.scream=0 xdebug.show_local_vars=1 xdebug.idekey=PHPSTORM
nginx sudo nginx -s reload brew services restart nginx
sudo nginx -s reload
brew services restart nginx
php-fpm brew services restart php70
brew services restart php70
localhost/info.php, xdebug. :
Source: https://habr.com/ru/post/1668499/More articles:stage 0 vs stage 4 TC39 javascript process - javascriptHow to stop indexing in xcode 8? - iosAsp.net WebApi: no types were found that matched the controller named "xxxx" - c #How to hide an icon from a WPF (Helix) window - wpfDoes the code in Practical Reverse Engineering have an error, or am I misunderstanding the circuit design? - assemblySQL Query возвращает значение, если выполняется более x секунд? - sql-serverPure virtual destructor of a local abstract class - c ++SQL UPDATE TOP () or UPDATE with SELECT TOP - sqlMake moving the left border to the center in javascript - javascriptWeb API 2, which is the best way to return an empty body for 201 responses - c #All Articles