Home  >  Article  >  Backend Development  >  Install PHP Xdebug on Mac

Install PHP Xdebug on Mac

不言
不言Original
2018-05-05 15:12:212306browse

This article gives you a detailed introduction to the detailed steps for installing the PHP debugging tool Xdebug under . If you need it, you can refer to it

Install PHP debugging tool Xdebug under Mac

Installation steps

  1. brew install php70

  2. brew install php70-xdebug

  3. php -i | grep xdebug.iniFind the xdebug.ini configuration file. Mine 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

    <pre class="brush:php;toolbar:false">配置如下: [xdebug] zend_extension=&quot;/usr/local/opt/php70-xdebug/xdebug.so&quot; 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</pre>
  5. Configure in PHPStorm

    Install PHP Xdebug on Mac

    Install PHP Xdebug on Mac

    Install PHP Xdebug on Mac

    Install PHP Xdebug on Mac

    Install PHP Xdebug on Mac# My debugging address:
    http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550

  6. Happy debugging, haha


Install the PHP debugging tool Xdebug under Mac

Installation steps

  1. ##brew install php70

  2. brew install php70-xdebug

  3. php -i | grep xdebug.ini

    Find the configuration file of xdebug.ini. Mine 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

    <pre class="brush:php;toolbar:false">配置如下: [xdebug] zend_extension=&quot;/usr/local/opt/php70-xdebug/xdebug.so&quot; 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</pre>

  5. Configure in PHPStorm
  6. Install PHP Xdebug on Mac

    Install PHP Xdebug on Mac

    Install PHP Xdebug on Mac

    Install PHP Xdebug on Mac

    #My debugging address: Install PHP Xdebug on Machttp://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550

    Happy debugging, haha

The above is the detailed content of Install PHP Xdebug on Mac. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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