Merge pull request #3871 from soulsands/config-debug

chore: debugger config for vscode developers
This commit is contained in:
zadam 2023-04-23 22:32:29 +02:00 committed by GitHub
commit a6eda2479f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
.vscode/launch.json vendored
View File

@ -1,19 +1,24 @@
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
// nodemon should be installed globally, use npm i -g nodemon
{ {
"type": "node", "console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"name": "nodemon start-server",
"program": "${workspaceFolder}/src/www",
"request": "launch", "request": "launch",
"name": "start-server", "restart": true,
"skipFiles": [ "runtimeExecutable": "nodemon",
"<node_internals>/**"
],
"env": { "env": {
"TRILIUM_ENV": "dev", "TRILIUM_ENV": "dev",
"TRILIUM_DATA_DIR": "./data" "TRILIUM_DATA_DIR": "./data"
}, },
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"outputCapture": "std", "outputCapture": "std",
"program": "${workspaceFolder}/src/www" },
}
] ]
} }