Skip to content

Instantly share code, notes, and snippets.

@hilkeheremans
Created September 15, 2016 11:37
Show Gist options
  • Save hilkeheremans/20b2fa2b9c473f293f1eb32701c1b2d0 to your computer and use it in GitHub Desktop.
Save hilkeheremans/20b2fa2b9c473f293f1eb32701c1b2d0 to your computer and use it in GitHub Desktop.
VS Code config for remote debugging on nodejs
# tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": false,
"outDir": "dist/",
"removeComments": true,
"sourceMap": true,
"watch": true
},
"exclude": [
"node_modules"
]
}
# launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "app",
"address": "server.dev",
"localRoot": "${workspaceRoot}/dist/",
"outDir": "${workspaceRoot}/dist/",
"type": "node",
"remoteRoot": "/app/lib/",
"request": "attach",
"restart": true,
"sourceMaps": true,
"port": 12345
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment