Home > Backend Development > PHP Tutorial > Detailed explanation of the steps to install PHP Xdebug on Mac system

Detailed explanation of the steps to install PHP Xdebug on Mac system

php中世界最好的语言
Release: 2023-03-26 10:04:01
Original
2641 people have browsed it

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

  1. brew install php70

  2. brew install php70-xdebug

  3. php -i | grep xdebug.ini Find the configuration file of xdebug.iniMy is /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini

  4. 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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template