Last active
January 13, 2021 07:06
-
-
Save junibrosas/5e8204044bebaf159a8b5157e1238930 to your computer and use it in GitHub Desktop.
VSCode debugging launch configuration examples
This file contains hidden or 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
{ | |
// 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": [ | |
{ | |
"name": "Launch via npm", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": ["run-script", "start:fast"] | |
} | |
] | |
} | |
{ | |
// 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": [ | |
{ | |
"name": "Launch via npm", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceFolder}/index_hmr.js", | |
"runtimeExecutable": "nodemon", | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen" | |
} | |
] | |
} | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Launch Program", | |
"skipFiles": ["<node_internals>/**"], | |
"port": 9229 | |
} | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach to Remote", | |
"port": 9229, | |
"trace": true, | |
"sourceMaps": true, | |
"skipFiles": ["<node_internals>/**"] | |
} | |
{ | |
// 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": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Launch Program", | |
"skipFiles": ["<node_internals>/**"], | |
"port": 9229, | |
"cwd": "${workspaceRoot}", | |
"trace": true, | |
"sourceMaps": true, | |
"sourceMapPathOverrides": { | |
"webpack:///./*": "${workspaceFolder}/*" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment