Installation of Phpstorm Xdebug

Source: Internet
Author: User

Environment:

My system: 4.4.0-43-generic #63-ubuntu SMP Wed Oct 13:48:03 UTC x86_64 x86_64 x86_64 gnu/linux

PHP version:P hp 5.5.15 (CLI)

window directly download the corresponding PHP version of the Xdebug module, do not compile themselves.

Linux download Xdebug source code, to compile.

Xdebug Download URL: https://xdebug.org/download.php

1) PHP Installation Extension Module-XDebug, follow the instructions compiled xdebug.so copy to the following zend_extension path:

To view the installation information for PHP, run:

1 php-r  "phpinfo ();"
View Code

My php.ini is in

Extension_dir in

Edit the file and add the following code:

1 zend_extension =/opt/lampp/lib/php/extensions/no-debug-non-zts-20121212/xdebug.  So 2 xdebug.remote_host = 127.0.0.13 xdebug.remote_enable = 14 xdebug.remote_port = 90005
     Xdebug.remote_handler = dbgp6 xdebug.remote_mode = req
View Code

Restart the server and execute the command below to see the Xdebug module.

1
View Code

2) Configuration of Phpstorm:

Menu File--setting window opens, upper left corner search: Debug, in Debug Port fill in the above php.ini value, here is 9000.

To configure the development environment, click the down arrow on the left side of the phone icon in the upper right corner:

Configuration of the server

Configuration of PHP Web application:

Finally, click on the bug in the upper right corner to debug.

  

  

Installation of Phpstorm Xdebug

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.