[LayaAirIDE 1.0]使用VSCode调试可以直接调起Chrome之后直接进入开发者模式嘛?

已邀请:

冰冻糖葫芦

赞同来自:

 
"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}"
        },

要回复问题请先

商务合作
商务合作