Skip to content

Commit 00bb2e6

Browse files
committed
add debug profile for ts-node scripts
1 parent 0162aeb commit 00bb2e6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@
1818
}
1919
],
2020
"configurations": [
21+
// Debug the ts-node script in the currently active window
22+
{
23+
"name": "Debug ts-node script (open file)",
24+
"type": "pwa-node",
25+
"cwd": "${workspaceFolder}/packages/${input:getPackageName}",
26+
"request": "launch",
27+
"runtimeExecutable": "yarn",
28+
"runtimeArgs": ["ts-node", "-P", "${workspaceFolder}/tsconfig.dev.json", "${file}"],
29+
"skipFiles": ["<node_internals>/**"],
30+
"outFiles": ["${workspaceFolder}/**/*.js", "!**/node_modules/**"],
31+
"sourceMaps": true,
32+
"smartStep": true,
33+
"internalConsoleOptions": "openOnSessionStart",
34+
"outputCapture": "std"
35+
},
2136
// Run rollup using the config file which is in the currently active tab.
2237
{
2338
"name": "Debug rollup (config from open file)",

0 commit comments

Comments
 (0)