Install PHP Debugging Tools under Window Xdebug

Source: Internet
Author: User

1.https://xdebug.org/wizard.php entering the contents of the local phpinfo.php in the box prompts for the version to be installed.

2.https://xdebug.org/download.php here to find the corresponding version of the download, note the TS and NTS version (see the thread in their own phpinfo.php safety is enabled is the TS version)

3. Download to the corresponding DLL file and place it in the Ext directory of PHP.

4. Add the following code to the PHP configuration file

1 [Xdebug]2Zend_extension_ts=php_xdebug-2.1.1-5.2-vc6.DLL3Zend_extension_debug=.4Xdebug.default_enable = on5Xdebug.auto_trace= on6Xdebug.show_exception_trace= on7 8**used to display error messages9Display_errors = onTenHtml_errors = on One  A**Displaying stack information -Xdebug.show_local_vars = 1 -Xdebug.max_nesting_level = 50 theXdebug.var_display_max_depth = 6 -Xdebug.dump_once = on -Xdebug.dump_globals = on -xdebug.dump_undefined = on +Xdebug.dump.REQUEST = * -Xdebug.cli_color = 2 +  A**Display Performance Information atxdebug.collect_params= on -xdebug.collect_return= on -xdebug.profiler_enable= on -Xdebug.trace_output_dir= "D:/mysoft/xdebug" -Xdebug.profiler_output_dir= "D:/mysoft/xdebug" -  in**Remote Debugging configuration information -xdebug.remote_enable= on toxdebug.remote_host=localhost +xdebug.remote_port=9001 -Xdebug.remote_handler=dbgp
View Code

So you can.

The installation process has encountered the following problems.

1. Download the corresponding version in phpinfo the xdebug extension is still not visible (it turns out that a non-version issue is another issue)

2.phpinfo in XDEBUG extension "XDEBUG not LOADED as ZEND EXTENSION" (XDEBUG configuration should write zend_extension_ts instead of EXTENSION)

3. After successful installation, Phpstorm also can start debugging after successful configuration, but cannot see the error message (php.ini configuration parameter is incomplete, you can see the error prompt according to the configuration code configuration above)

Install PHP Debugging Tools under Window 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.