[]跑第一个HelloLayabox出现runtimeExecutable配置错误
我用的是mac 电脑 launch.json 没去动过,默认配置在哪里,但是出错误。
Error processing "launch": Error: 找不到文件: null 请设置文件配置文件属性runtimeExecutable
at launch.then (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/extensions/laya-debug/out/bundle.js:153:31)
下面是默认脚本代码
{
"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",
"url": "${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",
"port":9222,
"fixedPort":false
}
]
}
Error processing "launch": Error: 找不到文件: null 请设置文件配置文件属性runtimeExecutable
at launch.then (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/extensions/laya-debug/out/bundle.js:153:31)
下面是默认脚本代码
{
"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",
"url": "${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",
"port":9222,
"fixedPort":false
}
]
}
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
Aar0n
赞同来自:
hengxin
赞同来自: