Atitit vscode 调试php vscode使用法
目录
1. 直接debug没反应,或者打开扩展列表 1
2. 调试配置法 1
2.1. Debug》》Add cfg php 1
2.2. Xdebug 和直接执行调试 1
2.3. 增加runtimeExecutable 1
3. PHP extensions 2
4. 问题解决法 4
4.1. spawn php ENOENT" In VS Code 4
5. 格式化 5
6. 重构 5
6.1. 改变变量名 5
1.直接debug没反应,或者打开扩展列表
增加调试配置
2.调试配置法
2.1.Debug》》Add cfg php
2.2.Xdebug 和直接执行调试
选择: "Launch currently open script",
2.3.增加runtimeExecutable
Zengjia
"runtimeExecutable": "C:/wamp/bin/php/php5.6.31/php.exe",
Launch.json
3.PHP extensions
There are many PHP language extensions available on the VS Code Marketplace and more are being created. You can search for PHP extensions from within VS Code in the Extensions view (Ctrl+Shift+X) then filter the extensions drop-down list by typing 'php&#