Install PHP xdebug steps in Mac system

Source: Internet
Author: User
Tags php debugging tools
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

    1. Brew Install PHP70

    2. Brew Install Php70-xdebug

    3. Php-i | grep xdebug.ini Find configuration file for 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

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.