Browse Source

add "Debug: Current File" configuration

Yuki Takei 3 years ago
parent
commit
584e88381c
1 changed files with 15 additions and 0 deletions
  1. 15 0
      .vscode/launch.json

+ 15 - 0
.vscode/launch.json

@@ -11,6 +11,21 @@
           "webpack://@growi/app/*": "${workspaceFolder}/packages/app/*"
         }
       },
+      {
+        "type": "pwa-node",
+        "request": "launch",
+        "name": "Debug: Current File",
+        "skipFiles": [
+          "<node_internals>/**"
+        ],
+        "console": "integratedTerminal",
+        "cwd": "${fileDirname}",
+        "runtimeExecutable": "yarn",
+        "runtimeArgs": [
+          "ts-node",
+          "${file}"
+        ]
+      },
       {
         "type": "pwa-node",
         "request": "launch",