1.下载phpstudy  切换到7.1.13版本

vscode php debug

2.查看phpinfo()

vscode php debug

 

3.下载php对应版本的插件 上图我这因为是32  所有需要下载32位的,如果64 下载64位的

vscode php debug

 

 4.下载后放到php 目录下的ext下 ,

 vscode php debug

 

 

5.打开php.ini 填写以下信息

zend_extension = php_xdebug-2.6.1-7.1-vc14-nts.dll
xdebug.remote_enable = 1
xdebug.remote_autostart = 1

 vscode php debug

6.查看phpinfo 是否存在“xdebug” ,存在则说明安装成功

 vscode php debug

7.配置vscode 打开文件-首选项-设置

vscode php debug

8.vscode 设置参数配置上

{
"php.validate.executablePath": "D:/Software/PhpStudy/PHPTutorial/php/php-7.1.13-nts/php.exe"
}

 vscode php debug

 

 9.扩展插架搜索xdebug 安装

vscode php debug

 

 10.开始调试

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-11-30
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案