PhpStorm + XAMPP + Xdebug integrated development and breakpoint debugging environment configuration, phpstormxampp

Source: Internet
Author: User
Tags zts

PhpStorm + XAMPP + Xdebug integrated development and breakpoint debugging environment configuration, phpstormxampp
0x01 Xdebug Installation

Reference: https://xdebug.org/docs/install

cd xdebug-2.5.4/phpizesudo ./configure --enable-xdebugsudo make & make install

And move module/xdebug. so to/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/File

0x02 install XAMPP

Reference: https://www.apachefriends.org/zh_cn/index.html

Download and install the SDK directly.

0x03 configure php. ini

Add the following configuration in XAMPP. Note the zend_extension path Configuration:

Zend_extension = "/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/xdebug. so"
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = localhost
Xdebug. remote_port = 9000
Xdebug. profiler_enable = 1
Xdebug. remote_log = "/Applications/XAMPP/xamppfiles/logs/xdebug. log"
Xdebug. idekey = "PHPSTORM"

0x04 PhpStorm Installation

Reference: http://www.jetbrains.com/phpstorm/

0x05 plug-in Installation

Install JetBrains IDE Support and Xdebug helper in Chrome.

0x06 configure PhpStrom

Configure the compiler. Select xampp php from File> Default Settings> PHP> Language & FrameWorks.

Debug Configuration:

 

Tools> Deployment> Configuration:

0x07 ends

Remember to select Start Listening For PHP... from the Run menu ...,

Then you can enable debugging. If an error occurs in the access path, you can modify the URL path in Run-> Edit Confiurations.

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.