Configure XAMPP and Xdebug under Mac

Source: Internet
Author: User
Tags phpinfo

1. Install Phpstorm, step 2. Install xampp:2.1 The version i downloaded is: XAMPP 5.6.24 (Download the latest version without 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 ... Start with an entry, copy the path, open, enter at the bottom: [Xdebug] zend_extension= /applications/xampp/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.soXdebug.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= 9010Xdebug.remote_handler= "DBGP" xdebug.idekey= "Phpstorm" 2.4: Restart Apach, see Phpinfo again, whether there is xdebug a 3, configuration phpstorm3.1 Open the project (the project already has read and write permission), click Phpstorm-preferences, go to Languages&frameworks, click the PHP option interpreter configuration: 3.2 php- Debug configuration: The port is consistent with the Phpinfo file: xdebug.remote_port= 9010 3.3 DEBUG-DBGP proxy:ide key:phpstormhost: If the domain name is configured, write the domain name here, otherwise write localhost can port: Any write (80, 9001 can) 3.4 Php-servers:name: Any write host: If the domain name is configured, write the domain name here, otherwise write localhost can be 3.5 click on the upper right corner of PHP + number, add PHP Web applicationserver: Just built the ServerStart URl: Write plus the server path can access the address of the project by clicking on the link below to see if the project can be accessed. 3.6 Plus breakpoint, click on the "Phone" icon to make it green, click the Debug (Bug) button, go to debug mode 3.7 Click Fn+f8, move the breakpoint Note: XAMPP SQL cannot start, you can start manually: sudo/applications/xampp/ Xamppfiles/bin/mysql.server start XAMPP Multi-domain configuration, reference: http://www.cnblogs.com/heiniuhaha/archive/2011/10/14/2212478.html

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.