Configure XAMPP and Xdebug under Mac

Source: Internet
Author: User
Tags phpinfo

1. To install the Phpstorm, proceed slightly

2. Install XAMPP:

2.1 I downloaded the version is: XAMPP 5.6.24 (Download the latest version there is no xdebug.so file)

Follow the steps to install.

2.2 After successful installation, launch it to see if it can run, enter localhost in the browser address bar, and see if you can access the XAMPP website.

2.3 Click the Phpinfo option in the top right corner of the site, go to the Phpinfo configuration page, and in the first table, find the load ... The first entry, copy path, open, enter at the bottom:

[Xdebug]

zend_extension=/applications/xampp/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so

Xdebug.remote_autostart=on

Xdebug.remote_enable=on

Xdebug.remote_enable=1

Xdebug.remote_mode= "Req"

Xdebug.remote_log= "/var/log/xdebug.log"

xdebug.remote_host=localhost/127.0.0.1

xdebug.remote_port=9010

Xdebug.remote_handler= "DBGP"

xdebug.idekey= "Phpstorm"

2.4: Restart Apach, check again phpinfo, whether there is xdebug a

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020112723529-1105982434.png "style=" border:0px; "/>

3, Configuration Phpstorm

3.1 Open Project (project already has read and write permission), click Phpstorm-preferences, go to Languages&frameworks, click PHP option

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020112732560-573681530.png "style=" border:0px; "/>

Configuration of the Interpreter:

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020112740029-1308034906.png "style=" border:0px; "/>

3.2 Php-debug Configuration: The port is consistent with the Phpinfo file: xdebug.remote_port=9010

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020113403404-1810901623.png "style=" border:0px;width:863px; "/>

3.3 DEBUG-DBGP Proxy:

IDE Key:phpstorm

Host: If the domain name is configured, write the domain name here, otherwise write localhost

Port: Any write (80, 9001 all can)

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020113210467-1404165996.png "style=" border:0px;width:863px; "/>

3.4 Php-servers:

Name: Any write

Host: If the domain name is configured, write the domain name here, otherwise write localhost

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020113154967-753572638.png "style=" border:0px;width:863px; "/>

3.5 Click on the top right corner of PHP

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020113038279-534375857.png "style=" border:0px; "/>

Click on the + sign to add PHP Web application

Server: The server you just created

Start URl: Write plus the server path can access the address of the project

You can click on the link below to see if you can access the project.

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020113046123-1677599089.png "style=" border:0px;width:863px; "/>

3.6 Plus breakpoint, click on the "Phone" icon to make it green, click the Debug (Bug) button, go to debug mode

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020113052060-591742839.png "style=" border:0px; "/>

3.7 Click Fn+f8 to move the breakpoint

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1046279/201610/ 1046279-20161020113058560-327056257.png "style=" border:0px; "/>

Note: Xampp SQL can be started manually when it is not started:

Sudo/applications/xampp/xamppfiles/bin/mysql.server start

XAMPP multi-domain configuration, reference: http://www.cnblogs.com/heiniuhaha/archive/2011/10/14/2212478.html


This article is from the "Thyme Xi Story" blog, so be sure to keep this source http://bailixide.blog.51cto.com/10389223/1863789

Configure XAMPP and Xdebug under Mac

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.