Skip to content

Instantly share code, notes, and snippets.

@junibrosas
Last active January 13, 2021 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junibrosas/5e8204044bebaf159a8b5157e1238930 to your computer and use it in GitHub Desktop.
Save junibrosas/5e8204044bebaf159a8b5157e1238930 to your computer and use it in GitHub Desktop.
VSCode debugging launch configuration examples
{
// 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