Skip to content

Commit 8acb226

Browse files
committed
chore: add vscode launcher for mocha debugging
1 parent a46c2d5 commit 8acb226

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.vscode/launch.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch Program",
11+
"skipFiles": [
12+
"<node_internals>/**"
13+
],
14+
"program": "${workspaceFolder}\\index.js"
15+
}, {
16+
"name": "Mocha: Current File",
17+
"type": "node",
18+
"request": "launch",
19+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
20+
"args": [
21+
"-s 0",
22+
"--file",
23+
"${relativeFile}",
24+
"--no-timeout"
25+
],
26+
"console": "integratedTerminal",
27+
"skipFiles": [
28+
"<node_internals>/**"
29+
]
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)