Home  >  Article  >  php教程  >  使用vs code写php及调试 - AS胡椒

使用vs code写php及调试 - AS胡椒

WBOY
WBOYOriginal
2016-05-20 10:19:161684browse

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

 

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、在浏览器访问即可

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn