用vsCode调试cocosCreator
Posted chzh999
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用vsCode调试cocosCreator相关的知识,希望对你有一定的参考价值。
1.首先在vscode中最左侧的扩展里边,下载debugger fo chrom,
安装成功后会有一个launch.json,修改内容:
1 { 2 "version": "1.4.0", 3 "configurations": [ 4 { 5 "name": "Creator Debug: Launch Chrome", 6 "type": "chrome", 7 "request": "launch", 8 "url": ": "http://localhost:7456", 9 ", 10 "sourceMaps": true, 11 "userDataDir": "${workspaceRoot}/.vscode/chrome", 12 "diagnosticLogging": false, 13 "pathMapping": { 14 "/preview-scripts/assets": "${workspaceRoot}/temp/quick-scripts/assets", 15 "/": "${workspaceRoot}" 16 } 17 } 18 ] 19 }
以上是关于用vsCode调试cocosCreator的主要内容,如果未能解决你的问题,请参考以下文章