launch.json 971 B

1234567891011121314151617181920212223242526
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "chrome调试",
  6. "type": "chrome",
  7. "request": "launch",
  8. "file": "${workspaceRoot}/bin/index.html",
  9. // "换成自己的谷歌安装路径,": 比如
  10. //window 默认安装路径为: "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
  11. //mac 系统上的默认安装路径为 "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
  12. // "runtimeExecutable": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
  13. "runtimeArgs": [
  14. "--allow-file-access-from-files",
  15. " --disable-web-security"
  16. ],
  17. "sourceMaps": true,
  18. "webRoot": "${workspaceRoot}",
  19. //假如谷歌调试报userDataDir不可用,请把谷歌安装路径取得管理员权限,或者更换${tmpdir}为其他可以读写的文件夹,也可以删除。
  20. "userDataDir": "${workspaceRoot}/.laya/chrome",
  21. "sourceMapPathOverrides": {
  22. "src/*": "${workspaceRoot}/src/*"
  23. }
  24. }
  25. ]
  26. }