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