"XDebug" Phpstorm+xdebug+firefox

Source: Internet
Author: User

Local Environment: Windows 7 64-bit

Phpstorm version: 2016.1PHP version: 5.6
Reference: Xdebug+phpstorm Configuration Reference: Local environment Phpstorm10+xdebug Configuration and breakpoint debugging first step: Install Xdebug Local environment is built with Phpstudy, directly in the Phpstudy can check Xdebug:


Other Options menu-php extension and set-php extension-xdebug tick (not checked by default)
Step Two: Configure PHP.ini to configure the following information in php.ini:
  • [xdebug
  • xdebug.profiler_output_dir= "D:\phpStudy\tmp\xdebug"
  • xdebug.trace_output_dir= "D:\phpStudy\tmp\xdebug"
  • zend_extension = "D:\phpStudy\php\ Php-5.6.27-nts\ext\php_xdebug.dll "
  • xdebug.remote_enable=1 //whether to allow remote terminals Span class= "PLN" style= "color: #48484c" > Here is the indicator on
  • xdebug.profiler_enable_trigger=0
  • xdebug.remote_handler=DBGP
  • xdebug.remote_mode=req
  • xdebug.remote_host=localhost
  • xdebug.remote_port=9000 // This indicates the server's listening port
  • xdebug.idekey=PHPSTORM //这里是调试器的关键字 在Chrome以及FireFox中插件配置的时候要用到
Note: The contents of the following comments should be removed.
Then restart Apache.
Step three: Verify that Xdebug is successful
The first method: Phpinfo in the localhost directory under the new phpinfo.php, the contents are:
    • <?php
    • phpinfo();
Then open localhost/phpinfo.php directly in the browser,
Indicates success
The second method: Php-mcmd into the PHP directory, the execution of Php-m,
If you succeed, you can see the Xdebug module
Fourth Step: Configure Phpstorm
1. Select the PHP version of Phpstorm:

2. Add a server
I'm adding localhost myself.
3. Debug settings
Port 9000, other default
4.DBGP proxy settings:
Note: Some tutorials here are 9001 ports, I have tried, 9000 and 9001 are no problem.
5. Edit structure Point run-edit structureDot + number, the server optional Localhost,start URL is on the basis of http://localhost plus go, such as add test, will form Http://localhost/test I'm using Firefox as a browser by default.

Fifth step: Firefox Firefox settings 1. Download the easiest Xdebug to the Firefox Components Extension Center
2. Then select:

Fill in the Phpstorm

Sixth step: Commissioning
1. Browser Enter the destination URL, then click on the top right of the crawler logo, open the plugin, is not open state
2. Phpstorm Turn on monitoring,is an open state
3. Break point:
4. Browser refresh, you can see the information in Phpstorm

"XDebug" Phpstorm+xdebug+firefox

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.