Skip to content

Instantly share code, notes, and snippets.

@spiderbites
Created August 14, 2017 14:47
Show Gist options
  • Save spiderbites/25e3825c148da82204f542014ae3452e to your computer and use it in GitHub Desktop.
Save spiderbites/25e3825c148da82204f542014ae3452e to your computer and use it in GitHub Desktop.
[Remote debug Node app running in VM provisioned by Vagrant with VSCode] #vagrant #vscode #node #debug
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": <VM-IP>,
"restart": false,
"sourceMaps": false,
"localRoot": "${workspaceRoot}",
"remoteRoot": "/home/vagrant"
}
]
}
{
"scripts": {
"start": "node --debug server.js"
}
}
config.vm.network "forwarded_port", guest: 5858, host: 5858
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment