"configurations": [
{
"name": "Debug: All",
"request": "launch",
"type": "pwa-chrome",
"sourceMaps": true,
"file": "${workspaceRoot}/bin/index.html",
//TODU 配置成Chorme实际安装路径:
"runtimeExecutable": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
"runtimeArgs": [
"--allow-file-access-from-files",
"--allow-file-access-frome-files",
"--disable-web-security",
"--auto-open-devtools-for-tabs"
],
// 在调试会话开始之前启动任务
"preLaunchTask": "run all:运行所有",
//假如谷歌调试报userDataDir不可用,请把谷歌安装路径取得管理员权限,或者更换${tmpdir}为其他可以读写的文件夹,也可以删除。
"userDataDir": "${workspaceRoot}/.laya/chrome",
"sourceMapPathOverrides": {
"src/*": "${workspaceRoot}/src/*"
},
"webRoot": "${workspaceFolder}",
"cwd": "${fileDirname}"
},
】