PHP Setup Debugging tool xdebug Phpstorm IDE

Source: Internet
Author: User

Download PHP extension xdebug https://xdebug.org, you can copy your own phpinfo paste into the https://xdebug.org/wizard.php, will generate the version you need to download, php.ini the settings statement.

Download and then put the PHP directory in the Ext folder, then set PHP.ini, at the end of the add

Zend_extension = C:\path\php\ext\php_xdebug-2.4.0rc4-5.6-vc11-x86_64.dll
Xdebug.remote_enable =1
Xdebug.remote_handler = DBGP
Xdebug.remote_host = localhost
Xdebug.remote_mode = req
Xdebug.remote_port = 9000
Xdebug.idekey=phpstorm

Then restart Apache to set the Phpstorm

1. Enter File>settings>php>servers, here to fill in the server side of the relevant information:
Name:localhost,
Host:localhost,
PORT:80,
Debugger:xdebug

If the custom domain name is set, the host sets the custom domain name, such as Laravel5.io


2. Go to File>settings>php>debug, locate the Xdebug tab, and port fill 9000
Enter FILE>SETTINGS>PHP>DEBUG>DBGP Proxy to fill in:
IDE Key:phpstorm
Host:localhost
Port:80


Setup is complete, click OK to exit.

Click on the menu bar of run>edit configurations ... In the popup window, add a Debug configuration:

Click the plus sign in the upper left corner to select PHP Web application

After filling out, set breakpoints in the code, and then turn on the phone icno monitoring, point small beetle start debugging

Then the next browser plugin, Xdebug helper, download good after the point options, IDE select Phpstorm, do not want to let the page display small beetle, you can set the domain filter

Basically finished, debugging on the phone icon to listen, set a good breakpoint, point small beetle open debugging, refresh the page visible results

PHP Setup Debugging tool xdebug Phpstorm IDE

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.