[0]Cannot launch program '/Users/xxx/Documents/work/code/lxxxx/.laya/launch.json'
Cannot launch program '/Users/xxx/Documents/work/code/lxxxx/.laya/launch.json'; setting the 'outDir or outFiles' attribute might help.ide 1.8.15 想运行 chrom调试 报错,
launch.json配置如下
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "chrome调试",
// "name": "启动程序",
"program": "${file}"
}
]
launch.json配置如下
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "chrome调试",
// "name": "启动程序",
"program": "${file}"
}
]
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
phhh
赞同来自:
layabox
赞同来自:
1.8.15 的IDE创建的默认配置为:
{"version": "0.2.0",
"configurations": [
{
"name": "layaAir",
"type": "chrome",
"request": "launch",
"file": "${workspaceRoot}/bin/index.html",
"runtimeExecutable": "${execPath}",
"useBuildInServer": true,
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"port": 9222,
"fixedPort":false
},
{
"name": "chrome调试",
"type": "chrome",
"request": "launch",
"file": "${workspaceRoot}/bin/index.html",
// "换成自己的谷歌安装路径,": 比如
//window 默认安装路径为: "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
//mac 系统上的默认安装路径为 "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
// "runtimeExecutable": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
"runtimeArgs": [
"--allow-file-access-from-files",
"--allow-file-access-frome-files",
" --disable-web-security"
],
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
//假如谷歌调试报userDataDir不可用,请把谷歌安装路径取得管理员权限,或者更换${tmpdir}为其他可以读写的文件夹,也可以删除。
"userDataDir": "${workspaceRoot}/.laya/chrome",
"fixedPort":false
}
]
}