This time I will bring you a detailed explanation of the installationPHP Xdebug steps in the Mac system. What are the precautions for installing PHP one time.
Installing PHP under MacDebuggingTool Xdebug
Installation steps
brew install php70
brew install php70-xdebug
php -i | grep xdebug.ini Find the configuration file of xdebug.iniMy is /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
vim /usr/local/etc/php/7.0/conf.d/ext -xdebug.ini
配置如下: [xdebug] zend_extension="/usr/local/opt/php70-xdebug/xdebug.so" xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_host= localhost xdebug.remote_port = 9001 #这个端口不要被占用即可,可以自行指定 xdebug.idekey = PHPSTORM xdebug.remote_autostart=1 xdebug.remote_log=/var/tmp/xdebug.log
Configuration in PHPStorm
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
Detailed explanation of the use of PHP status mode
Detailed explanation of the steps for PHP to dynamically obtain function parameters
The above is the detailed content of Detailed explanation of the steps to install PHP Xdebug on Mac system. For more information, please follow other related articles on the PHP Chinese website!