chore: debugger config for vscode developers

This commit is contained in:
baiyongjie 2023-04-23 15:26:46 +08:00
parent 8725f7cfb2
commit e10a7ea9a6

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" },
}
] ]
} }