Last active
April 16, 2021 16:52
-
-
Save anastasiya29/ed89d4abe67d61065f50a88b69fa25b6 to your computer and use it in GitHub Desktop.
VSCode debugging configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Debug a process running in the browser | |
{ | |
"name": "Chrome", | |
"type": "chrome", | |
"request": "launch", | |
"url": "http://localhost:3000", | |
"webRoot": "${workspaceFolder}" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Start debugging from a specific JS file | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Name of your debug task", | |
"program": "${workspaceRoot}/path/to/your/script.js", | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Start debugging from a specific npm script | |
{ | |
"name": "npm run script", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}/packages/my-app", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": ["run-script", "build" /*, "--preserve-symlinks" */], // if degugging across symlinked projects | |
"port": 5858, | |
"resolveSourceMapLocations": [ | |
"${workspaceFolder}/**", | |
"!**/node_modules/**" | |
], | |
"console": "integratedTerminal", | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment