This time to bring you to the MAC system installation PHP xdebug steps, the MAC system installed PHP xdebug Note What, the following is the actual case, together to see.
Install PHP Debugging tools under Mac Xdebug
Installation steps
Brew Install PHP70
Brew Install Php70-xdebug
Php-i | grep xdebug.ini Find configuration file for Xdebug.ini mine is/usr/local/etc/php/7.0/conf.d/ext-xdebug.ini.
Vim/usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
The configuration is as follows: [xdebug]zend_extension= "/usr/local/opt/php70-xdebug/xdebug.so" xdebug.remote_enable = Onxdebug.remote_ Handler = dbgpxdebug.remote_host= Localhostxdebug.remote_port = 9001 #这个端口不要被占用即可, you can specify Xdebug.idekey = Phpstormxdebug.remote_autostart=1xdebug.remote_log=/var/tmp/xdebug.log
Configuring in Phpstorm
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Recommended reading:
PHP State mode Use detailed
PHP dynamic get function parameter steps