Skip to content

Commit 0c8fa5b

Browse files
committed
TO-DROP: vscode: add a configuration to debug one GitHub Action locally
This automatically launches the current file, i.e. the respective `index.js` _must_ be currently open before launching this debug task. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 76b29db commit 0c8fa5b

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.vscode/launch.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Launch GitHub Action",
9+
"type": "node",
10+
"request": "launch",
11+
"runtimeArgs": [
12+
"--inspect-brk",
13+
// "--nolazy",
14+
],
15+
"args": [
16+
"${file}" // the current file
17+
],
18+
"stopOnEntry": false,
19+
"cwd": "${workspaceFolder}",
20+
"runtimeExecutable": null,
21+
"env": {
22+
"NODE_ENV": "development",
23+
"GITGITGADGET_DRY_RUN": "1"
24+
},
25+
"console": "integratedTerminal",
26+
"sourceMaps": true,
27+
"outFiles": [
28+
"${workspaceFolder}/build/**/*.js",
29+
"${workspaceFolder}/dist/**/*.js",
30+
"${workspaceFolder}/lib/**/*.js"
31+
]
32+
},
733
{
834
"name": "Tests",
935
"type": "node",
@@ -18,7 +44,6 @@
1844
],
1945
"stopOnEntry": false,
2046
"cwd": "${workspaceFolder}",
21-
"preLaunchTask": null,
2247
"runtimeExecutable": null,
2348
"env": {
2449
"NODE_ENV": "development"

0 commit comments

Comments
 (0)