Skip to content

Instantly share code, notes, and snippets.

@augustovictor
Last active October 1, 2018 17:59
Show Gist options
  • Save augustovictor/67c69cb91fb91a4321a289c4132a9432 to your computer and use it in GitHub Desktop.
Save augustovictor/67c69cb91fb91a4321a289c4132a9432 to your computer and use it in GitHub Desktop.
Debug vscode docker es6
# docker-compose.yml
...
command: npm run debug
ports:
- "3000:3000"
- "9229:9229"
...
--------------------------------------------------------
# package.json
...
"debug": "node_modules/.bin/nodemon --inspect=0.0.0.0:9229 bin/dev"
...
--------------------------------------------------------
# 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": [
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 9229,
"protocol": "inspector",
"restart": true,
"address": "localhost",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/usr/src/app",
"sourceMaps": false
}
]
}
--------------------------------------------------------
# .babelrc
{
"presets": [ "es2015" ],
"retainLines": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment