Xdebug configuration failed

try all kinds of methods on the Internet all night without solving it, using Wampserver3.1.3,PHP7.0.29,Apache2.4.33.
php_xdebug 2.6.0 is a checked state in Wamp"s php extension.
I didn"t find Xdebug, in phpinfo at first and then started searching. At first, I tried a lot of php.ini configurations, all of which were more or less the same, but still couldn"t find Xdebug. Then, according to the suggestion of a post, copy the contents of phpinfo to https://xdebug.org/wizard.php, download dll (php_xdebug-2.6.0-7.0-vc14.dll) according to the instructions given, and place it in the corresponding directory (original wamp default under / zend_ext, recommended under / ext). Modify php.ini, or no Xdebug, Copy the updated phpinfo content to https://xdebug.org/wizard.php, or display the last result.
searched again without success, but still couldn"t find a solution.

Mar.17,2021

wamp has two php configuration files, one is php.ini, which is applied to php
in cli mode, and the other is phpForApache.ini, which is the php configuration file loaded by apache. This file is soft-linked to the bin directory of apache.
xdebug is an extension of the zend engine. For the configuration of zend_extension=/path/to/your/xdebug.dll
xdebug in the configuration file, please refer to this:

zend_extension ="/wamp64/bin/php/php7.0.4/zend_ext/php_xdebug-2.6.0-7.0-ts-vc14-x64.dll"

xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="/wamp64/tmp"
xdebug.show_local_vars=0


xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
Menu