Mac under Phpstorm configuration Xdebug

Source: Internet
Author: User
Tags php language

1. Download the address http://www.xdebug.org/download.php, download the source version of the

TAR-ZXVF xdebug-2.4.0rc3.tgz
cd xdebug-2.4.0rc3/
use Whereis phpize to view the path phpize whereis
Execute phpize make make install using the verbose path

After installation, prompt installation directory:

Installing Shared extensions:/usr/local/cellar/php55/5.5.38/lib/php/extensions/no-debug-zts-20121212/


Then add in php.ini:

[Xdebug]

Zend_extension=xdebug.so

Xdebug.remote_enable = On

; XDEBUG.REMOTE_HANDLER=DBGP

Xdebug.remote_host= "127.0.0.1"

xdebug.remote_port=9111

xdebug.profiler_enable = 1

Xdebug.profiler_enable_trigger = Off

Xdebug.profiler_output_name = cachegrind.out.%t.%p

Xdebug.remote_autostart = On


Restart Apache,

sudo apachectl restart


Open Phpstorm,file->default Preferences->languages & Frameworks

PHP Language level: I'm 5.5 here.

Default interpreters: Create a new PHP path to write your PHP address






DBGP Proxy settings:



Next configure server, I do not have server in this version. Set in Run->debug configurations.



Add Server



The next step is to debug.


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.