VS Code 对Lua调试的配置

        {
            "name": "Cocos2-launch",
            "type": "lua",
            "request": "launch",
            "runtimeType": "Cocos2",
            "localRoot": "${workspaceRoot}",
            "commandLine": "-workdir ${workspaceRoot}/client/base -file src/main.lua",
            "port": 7003,
            "exePath": "${workspaceRoot}/handspoker.exe",
            "fileExtNames": [
                ".lua",
                ".txt",
                ".lua.txt",
                ".bytes"
            ],
            "isFoxGloryProject": false,
            "printType": 1,
            "checkLuaDebugVersion": true
        },
 
  "name":表示调试的名称,这个可以任意;
  "type": 表示你要调试的语言类型;
  "runtimeType":表示工具的类型(比如说cocos2d,unity3d);
  "commandLine":表示运行的起始文件;
  "port":表示调试端口,一般都是7003;
  "exePath":表示运行的exe文件位置;
  
posted @ 2020-03-25 11:00  给自己一点正能量!  阅读(6357)  评论(0)    收藏  举报