Skip to content

Commit d04bc5c

Browse files
Add nodejs debug (e.g., fastapi)
1 parent 87a08c5 commit d04bc5c

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

.vscode/launch.json

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,31 @@
22
// Use IntelliSense to learn about possible attributes.
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
56
// pytest: https://stackoverflow.com/questions/70259564/how-to-debug-the-current-python-test-file-with-pytest-in-vs-code
7+
68
"version": "0.2.0",
7-
"configurations": [{
8-
"name": "Python: Debug Tests",
9-
"type": "python",
10-
"request": "launch",
11-
"module": "pytest",
12-
"args": [
13-
"${file}"
14-
],
15-
"console": "integratedTerminal"
16-
}]
9+
"configurations": [
10+
{
11+
"name": "Python: Debug Tests",
12+
"type": "python",
13+
"request": "launch",
14+
"module": "pytest",
15+
"args": [
16+
"${file}"
17+
],
18+
"console": "integratedTerminal"
19+
},
20+
{
21+
"name": "Node: Current File",
22+
"type": "node",
23+
"request": "launch",
24+
"program": "${file}",
25+
"console": "integratedTerminal",
26+
"skipFiles": [
27+
"<node_internals>/**"
28+
],
29+
// "runtimeExecutable": "${env:HOME}/.n/bin/node"
30+
}
31+
]
1732
}

0 commit comments

Comments
 (0)