PHP debugging tool xdebug supported in MAC environment, no Project Server required

Source: Internet
Author: User
Tags fpm imap php debugging tools php download phpinfo tidy zts macbook

  Brew Install php56--with-imap--with-tidy--with-debug--with-mysql--with-fpm Do not use --with-debug Brew Install php56--with-imap--with-tidy--with-mysql--with-fpm Brew Search Php56-xdebug https://xdebug.org/wizard.php

xingchongs-macbook-pro-3:~ xingchong$

xingchongs-macbook-pro-3:~ xingchong$

xingchongs-macbook-pro-3:~ xingchong$ Brew Search Php56-xdebug

==> searching local taps ...

Josegonzalez/php/php56-xdebug

==> searching taps on GitHub ...

Homebrew/php/php56-xdebug

==> searching blacklisted, migrated and deleted formulae ...

xingchongs-macbook-pro-3:~ xingchong$ Brew Install Josegonzalez/php/php56-xdebug

Updating Homebrew ...

==> Installing Php56-xdebug from josegonzalez/php

==> downloading https://homebrew.bintray.com/bottles-php/php56-xdebug-2.5.5.sierra.bottle.tar.gz

######################################################################## 100%

==> pouring php56-xdebug-2.5.5.sierra.bottle.tar.gz

==> Caveats

To-Finish installing Xdebug for PHP 5.6:

*/usr/local/etc/php/5.6/conf.d/ext-xdebug.ini was created,

Do not forget to remove it upon extension removal.

* Validate installation via one of the following methods:

*

* Using PHP from a webserver:

*-Restart your webserver.

*-Write a PHP page that calls "phpinfo ();"

*-Load it in a browser and look for the info on the Xdebug module.

*-If you are there been successful!

*

* Using PHP from the command line:

*-Run ' php-i ' (Command-Line ' phpinfo () ') "'

*-Look for the info on the Xdebug module.

*-If you are there been successful!

==> Summary

?? /usr/local/cellar/php56-xdebug/2.5.5:4 files, 196KB

xingchongs-macbook-pro-3:~ xingchong$

xingchongs-macbook-pro-3:~ xingchong$

xingchongs-macbook-pro-3:~ xingchong$

let PHP support Xdebug first Way One: https://xdebug.org/download.php Download the corresponding xdebug can go to http://xdebug.org/wizard.php phpinfo all the information pasted up, will give the corresponding version decompression TAR-ZXVF Xdebug CD Xdebug directory execution phpize (my directory is/usr/local/bin/phpize, executed with sudo) error appears cannot find autoconf. Please check your autoconf The reason is that you need to install autoconf Brew install autoconf OK./configure--enable-xdebug make && make Inst All Mode two: Use Brew search PHP to locate the xdebug extension  brew install homebrew/php/xdebug-osx  installation is complete, the following prompt appears: Installing shared extensions:     /usr/local/cellar/php56/5.6.32_8/lib/php/extensions/ no-debug-non-zts-20131226/+----------------------------------------------------------------------+   |                                                                         |  |    installation instructions                                            |  |   =========================                                             |  |                                                                          |  |   see http://xdebug.org/install.php#configure-php For Instructions   |  |   on How to enable Xdebug for php.   & nbsp;                                |  |                                                                          |  |    Documentation is available online as well:                          |  |    -A List of all settings:  http://xdebug.org/docs-settings.php     |   |   - A List of all functions:http://xdebug.org/docs-functions.php    |  |    -Profiling instructions:  http://xdebug.org/docs-profiling2.php   |  |    -Remote debugging:        http://xdebug.org/ docs-debugger.php     |  |                                                                          |  |                                                                          |  |   note:please disregard the message                                   |  |        you should add "extension=xdebug.so" to php.ini                 |  |   that is emitted by the PECL installer. This does isn't work for      |  |   xdebug.                                                                |  |                                                                          |  +----------------------------------------------------------------------+    Configure php.ini, see your profile in phpinfo [xdebug];extension=php_xdebug.dllzend_extension = "/usr/local/cellar/php56/ 5.6.32_8/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so "xdebug.auto_trace=1xdebug.collect_params= 1xdebug.collect_return=1xdeBug.trace_output_dir= "/usr/local/var/xdebug/trace" xdebug.profiler_enable=1xdebug.profiler_output_dir= "/usr/ Local/var/xdebug/profiler "Xdebug.remote_autostart=1 #自动xdebug. remote_enable=truexdebug.remote_host= localhostxdebug.remote_port=9050  #我用的php-fpm mode to start the php,9000 port is occupied by it, so the port Xdebug.remote_handler =  "DBGP" # Do not write, the default is Dbgpxdebug.idekey = Phpstorm #可不写, the default is the environment variable restart php  above is the configuration of PHP support Xdebug, php-v or phpinfo to see Xdebug open it.  ----------------------------------------------set Phpstorm monitor Xdebug toss for nearly 2 days, really at first should be PHP and Xdebug mismatch, Directly under a 2.5.5, detected did not notice said to 2.5.4, and then into the pit can not come out, the above configuration is mainly extension path to write to, autostart configuration of 1, the above configuration in the Xdebug official website has a description, But the key xdebug principle to see HTTPS://XDEBUG.ORG/DOCS/REMOTEDBGP's explanation:https://xdebug.org/docs-dbgp.php#standard-dbgp-port  ------said Phpstorm in the configuration, the default port in DBGP should be 80, the IDE key write configuration value is good, the port should be 80, the default is 9001 not changed   ------------------------ -----added, the dot bug side of the edit config in a few configuration introduced Phpstorm's official website https://confluence.jetbrains.com/display/PhpStorm/Debugging+PHP+ Web+applications+with+run+debug+configurations yes, we have a description.

PHP Debugging Tools Xdebug supported in MAC environment, no Project Server required

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.