NOTE: JSON files don't normally allow comments, but VSCode allows them in
.vscode/launch.json
.
TODO:
- Add debug config for React/JS-HTML-CSS projects in the browser
NOTE: JSON files don't normally allow comments, but VSCode allows them in
.vscode/launch.json
.
TODO:
{ | |
// Save this in your project: `./.vscode/launch.json` | |
// | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
// Debugging tests | |
//// Run the `npm test` command: | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Run Tests", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": ["test"] | |
}, | |
//// VSCodes built in Mocha test configuration: | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Mocha Tests", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"args": [ | |
"-u", | |
"tdd", | |
"--timeout", | |
"999999", | |
"--colors", | |
"${workspaceFolder}/test" | |
], | |
"internalConsoleOptions": "openOnSessionStart", | |
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha" | |
}, | |
// TODO: debug React/JS-HTML-CSS projects in the browser. | |
// Debugging a specific file or project: | |
//// To debug the current active file: | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch File", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"program": "${file}" | |
}, | |
//// To debug a project, do something like: | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch App", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"program": "${workspaceFolder}/app.js" | |
} | |
] | |
} |