1.打印phpinfo(),然后复制到https://xdebug.org/wizard.php检测
2.根据步骤 1 下载对应的版本Xdebug,并导入dll文件,编辑php.ini 。下载地址 https://xdebug.org/download
3.配置 php.ini ,加入下列配置
[xdebug]
zend_extension ="D:/wamp64/bin/php/php7.0.23/zend_ext/php_xdebug-2.5.5-7.0-vc14-x86_64.dll" # xdebug 下载链接(https://xdebug.org/download.php),wamp集成环境会自带xdebug插件
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 ="D:/wamp64/tmp"
xdebug.show_local_vars=0
xdebug.idekey=PHPSTORM # 非常重要,务必记住
xdebug.remote_enable = On
xdebug.remote_host=localhost
xdebug.remote_port=9000 # 端口ID,phpstorm 设置须一致
xdebug.remote_handler=dbgp
4.设置phpstrom
5.postman访问