Skip to content

Instantly share code, notes, and snippets.

@rerodrigues
Last active June 28, 2019 04:55
Show Gist options
  • Save rerodrigues/f9b588a20d29fb3dc114c12e169b978a to your computer and use it in GitHub Desktop.
Save rerodrigues/f9b588a20d29fb3dc114c12e169b978a to your computer and use it in GitHub Desktop.
{
// 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": "launch",
"name": "Node: Launch index.js",
"program": "${workspaceFolder}/index.js",
"env": {
"NODE_ENV": "development"
}
},
{
"type": "node",
"request": "attach",
"name": "Node: Attach to nodemon",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector",
},
{
"name": "Node: NPM run start-debug (Wrapper)",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script", "start-debug"
],
"restart": true,
"port": 9229
},
{
"name": "Node: NPM run start-dev (Frontend)",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script", "start-dev"
],
"restart": true,
"port": 9229
}
]
}
@rerodrigues
Copy link
Author

En package.json crear la línea

"start-debug": "NODE_ENV=development nodemon --inspect ./index.js",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment