浏览代码

[libgdx] Fix VS Code launch config for debug-printer

Mario Zechner 2 月之前
父节点
当前提交
6dffb3ea90
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 8 0
      spine-libgdx/.vscode/launch.json
  2. 0 1
      spine-ts/spine-core/tests/DebugPrinter.ts

+ 8 - 0
spine-libgdx/.vscode/launch.json

@@ -12,6 +12,14 @@
                 "${workspaceFolder}/../examples/spineboy/export/spineboy-pma.atlas",
                 "${workspaceFolder}/../examples/spineboy/export/spineboy-pma.atlas",
                 "run"
                 "run"
             ],
             ],
+            "console": "integratedTerminal",
+            "internalConsoleOptions": "neverOpen",
+            "sourcePaths": [
+                "${workspaceFolder}/spine-libgdx-tests/src",
+                "${workspaceFolder}/spine-libgdx/src",
+                "${workspaceFolder}/../libgdx/gdx/src"
+
+            ]
         }
         }
     ]
     ]
 }
 }

+ 0 - 1
spine-ts/spine-core/tests/DebugPrinter.ts

@@ -120,7 +120,6 @@ class DebugPrinter {
         try {
         try {
             // Load atlas
             // Load atlas
             const atlasData = await fs.readFile(atlasPath, 'utf8');
             const atlasData = await fs.readFile(atlasPath, 'utf8');
-            const atlasDir = path.dirname(atlasPath);
             const atlas = new TextureAtlas(atlasData);
             const atlas = new TextureAtlas(atlasData);
 
 
             // Load skeleton data
             // Load skeleton data