用vsCode调试cocosCreator

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 15:57   2194   0

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 }

转载于:https://www.cnblogs.com/chzh999/p/9456897.html

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP