debugger for chrome
{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"type": "chrome","request": "launch","name": "Open index.html","file": "/Users/apron/Documents/html-test/index.html"}]}
配置项
name: string 任务名
request: “launch” | “attatch” 启动方式
launch启动方式的配置
type: string 运行的环境
runtimeArgs: array 运行环境参数
program: string 运行的文件名
args:给运行文件传的参数
cwd:string 执行命令的目录,会先进入到该目录下,再执行命令
autoAttachChildProcesses: boolean 是否附加到子进程
env:object 设置环境变量
"env": { "USER": "john doe" }
envFile: string 环境变量文件
"envFile": "${workspaceFolder}/.env",
.env
USER=doePASSWORD=abc123# a comment# an empty value:empty=# new lines expanded in quoted strings:lines="foo\nbar"
