vscode中配置php的xdebug

vscode中配置php的xdebug

vscode配置php的xdebug,步骤如下:
1、 安装phpdebug插件: PHP Debug
2、网上下载php的xdebug扩展(注意根据自己的php版本号进行下载)
我自己php版本: 5.6.25
下载的xdebug版本:5.6
保存在 .../ext/ 目录下
3、配置php.ini文件(此文件是apache中的,非php中的)
; XDEBUG Extension
[xdebug]
zend_extension ="D:/wamp/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.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 ="D:/wamp/tmp"
xdebug.show_local_vars=0
;启用远程调试
xdebug.remote_autostart= 1
4、重启服务器,在vscode中点击臭虫,添加php的xdebug配置信息(一般自动生成就可以用了)

猜你喜欢

转载自www.cnblogs.com/alisleepy/p/9982449.html