ashidamana

原文来自:http://www.cnblogs.com/CLR010/p/5276077.html

 首页先改下php.ini

一般是在最底部,有就修改没有就加上去下面的配置:

xdebug.remote_enable = on

xdebug.remote_autostart=on

  

1、首先官网下载vs code  地址:https://code.visualstudio.com/

 

2、安装扩展php-debug安装步骤见 https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug

具体为:(Ctrl+p)在文本框输入“ext install php-debug”回车等下就会出现此扩展

上图右下角有个下载按钮(截图为已经下载所以显示x)

3、配置用户设置

弹出下面窗口,然后将   "php.validate.executablePath": "C:/wamp/bin/php/php5.5.12/php.exe" 添加进去

4、配置debug

选择listen for xdebug

 (配置文件内容不需要动)

5、启动wampserver

 

6、打开php文件,在指定行按F9设置断点然后启动调试

7、在浏览器访问即可

 

分类:

技术点:

相关文章:

  • 2021-09-21
  • 2022-12-23
  • 2021-06-03
  • 2021-06-11
  • 2021-11-07
  • 2021-12-26
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案